Merge pull request #199 from kichikuou/CGManager

CGManager.LoadArchive() should open archive in the game directory
This commit is contained in:
Nunuhara Cabbage
2024-10-09 06:24:33 -07:00
committed by GitHub
+1 -2
View File
@@ -15,7 +15,6 @@
*/
#include "system4/string.h"
#include "system4/utfsjis.h"
#include "asset_manager.h"
#include "xsystem4.h"
#include "hll.h"
@@ -27,7 +26,7 @@ static bool CGManager_Init(void *imain_system, int cg_cache_size)
static bool CGManager_LoadArchive(struct string *archive_name)
{
char *name = sjis2utf(archive_name->text, 0);
char *name = gamedir_path(archive_name->text);
bool r = asset_manager_load_archive(ASSET_CG, name);
free(name);
return r;