wiiu: channel path fixes

This commit is contained in:
GaryOderNichts 2021-01-31 23:25:53 +01:00
parent ddb28462dc
commit b6c01f839f
3 changed files with 17 additions and 0 deletions

View File

@ -984,7 +984,11 @@ cSampleManager::Initialise(void)
add_providers(); add_providers();
#ifdef AUDIO_CACHE #ifdef AUDIO_CACHE
#ifdef WIIU_CHANNEL
FILE *cacheFile = fcaseopen("/vol/external01/wiiu/apps/re3/audio/sound.cache", "rb");
#else
FILE *cacheFile = fcaseopen("audio\\sound.cache", "rb"); FILE *cacheFile = fcaseopen("audio\\sound.cache", "rb");
#endif
if (cacheFile) { if (cacheFile) {
debug("Loadind audio cache (If game crashes around here, then your cache is corrupted, remove audio/sound.cache)\n"); debug("Loadind audio cache (If game crashes around here, then your cache is corrupted, remove audio/sound.cache)\n");
fread(nStreamLength, sizeof(uint32), TOTAL_STREAMED_SOUNDS, cacheFile); fread(nStreamLength, sizeof(uint32), TOTAL_STREAMED_SOUNDS, cacheFile);
@ -1007,7 +1011,11 @@ cSampleManager::Initialise(void)
USERERROR("Can't open '%s'\n", StreamedNameTable[i]); USERERROR("Can't open '%s'\n", StreamedNameTable[i]);
} }
#ifdef AUDIO_CACHE #ifdef AUDIO_CACHE
#ifdef WIIU_CHANNEL
cacheFile = fcaseopen("/vol/external01/wiiu/apps/re3/audio/sound.cache", "wb");
#else
cacheFile = fcaseopen("audio\\sound.cache", "wb"); cacheFile = fcaseopen("audio\\sound.cache", "wb");
#endif
if(cacheFile) { if(cacheFile) {
debug("Saving audio cache\n"); debug("Saving audio cache\n");
fwrite(nStreamLength, sizeof(uint32), TOTAL_STREAMED_SOUNDS, cacheFile); fwrite(nStreamLength, sizeof(uint32), TOTAL_STREAMED_SOUNDS, cacheFile);

View File

@ -356,7 +356,11 @@ void SaveINIControllerSettings()
bool LoadINISettings() bool LoadINISettings()
{ {
#ifdef WIIU_CHANNEL
if (!cfg.load_file("/vol/external01/wiiu/apps/re3/re3.ini"))
#else
if (!cfg.load_file("re3.ini")) if (!cfg.load_file("re3.ini"))
#endif
return false; return false;
#ifdef IMPROVED_VIDEOMODE #ifdef IMPROVED_VIDEOMODE
@ -514,7 +518,11 @@ void SaveINISettings()
} }
#endif #endif
#ifdef WIIU_CHANNEL
cfg.write_file("/vol/external01/wiiu/apps/re3/re3.ini");
#else
cfg.write_file("re3.ini"); cfg.write_file("re3.ini");
#endif
} }
#endif #endif

View File

@ -857,6 +857,7 @@ main(int argc, char *argv[])
_psCreateFolder("/vol/external01/wiiu/apps/re3"); _psCreateFolder("/vol/external01/wiiu/apps/re3");
_psCreateFolder("/vol/external01/wiiu/apps/re3/models"); _psCreateFolder("/vol/external01/wiiu/apps/re3/models");
_psCreateFolder("/vol/external01/wiiu/apps/re3/data"); _psCreateFolder("/vol/external01/wiiu/apps/re3/data");
_psCreateFolder("/vol/external01/wiiu/apps/re3/audio");
// read from content // read from content
chdir("/vol/content"); chdir("/vol/content");