Skip to content

Commit 4be14c4

Browse files
author
宋文武
committed
libretro: Fix loading of data.zip as the game
1 parent e2eccdb commit 4be14c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop_version/libretro/libretro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ retro_get_system_info(struct retro_system_info* info)
7777
info->valid_extensions = "zip";
7878
info->library_version = "0.1";
7979
info->library_name = "vvvvvv";
80-
info->block_extract = false;
80+
info->block_extract = true;
8181
}
8282

8383
void
@@ -135,7 +135,7 @@ retro_load_game(const struct retro_game_info* game)
135135
chdir(systemdir);
136136
chdir("vvvvvv");
137137
} else {
138-
chdir(game->path);
138+
chdir(SDL_strdup(dirname(game->path)));
139139
}
140140

141141
game_thread = SDL_CreateThread(game_main, "VVVVVV", NULL);

0 commit comments

Comments
 (0)