From eab75e05148f0b457c05dbeb4ca95f1f5d5f4b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sat, 12 Oct 2024 22:04:25 +0800 Subject: [PATCH] libretro: Fix loading of data.zip as the game --- desktop_version/libretro/libretro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/libretro/libretro.c b/desktop_version/libretro/libretro.c index 159eaddb..b318c00d 100644 --- a/desktop_version/libretro/libretro.c +++ b/desktop_version/libretro/libretro.c @@ -77,7 +77,7 @@ retro_get_system_info(struct retro_system_info* info) info->valid_extensions = "zip"; info->library_version = "0.1"; info->library_name = "vvvvvv"; - info->block_extract = false; + info->block_extract = true; } void @@ -135,7 +135,7 @@ retro_load_game(const struct retro_game_info* game) chdir(systemdir); chdir("vvvvvv"); } else { - chdir(game->path); + chdir(dirname(SDL_strdup(game->path))); } game_thread = SDL_CreateThread(game_main, "VVVVVV", NULL);