mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-29 12:34:14 +01:00
wiiu: channel path fixes
This commit is contained in:
parent
ddb28462dc
commit
b6c01f839f
@ -984,7 +984,11 @@ cSampleManager::Initialise(void)
|
||||
add_providers();
|
||||
|
||||
#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");
|
||||
#endif
|
||||
if (cacheFile) {
|
||||
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);
|
||||
@ -1007,7 +1011,11 @@ cSampleManager::Initialise(void)
|
||||
USERERROR("Can't open '%s'\n", StreamedNameTable[i]);
|
||||
}
|
||||
#ifdef AUDIO_CACHE
|
||||
#ifdef WIIU_CHANNEL
|
||||
cacheFile = fcaseopen("/vol/external01/wiiu/apps/re3/audio/sound.cache", "wb");
|
||||
#else
|
||||
cacheFile = fcaseopen("audio\\sound.cache", "wb");
|
||||
#endif
|
||||
if(cacheFile) {
|
||||
debug("Saving audio cache\n");
|
||||
fwrite(nStreamLength, sizeof(uint32), TOTAL_STREAMED_SOUNDS, cacheFile);
|
||||
|
@ -356,7 +356,11 @@ void SaveINIControllerSettings()
|
||||
|
||||
bool LoadINISettings()
|
||||
{
|
||||
#ifdef WIIU_CHANNEL
|
||||
if (!cfg.load_file("/vol/external01/wiiu/apps/re3/re3.ini"))
|
||||
#else
|
||||
if (!cfg.load_file("re3.ini"))
|
||||
#endif
|
||||
return false;
|
||||
|
||||
#ifdef IMPROVED_VIDEOMODE
|
||||
@ -514,7 +518,11 @@ void SaveINISettings()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WIIU_CHANNEL
|
||||
cfg.write_file("/vol/external01/wiiu/apps/re3/re3.ini");
|
||||
#else
|
||||
cfg.write_file("re3.ini");
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -857,6 +857,7 @@ main(int argc, char *argv[])
|
||||
_psCreateFolder("/vol/external01/wiiu/apps/re3");
|
||||
_psCreateFolder("/vol/external01/wiiu/apps/re3/models");
|
||||
_psCreateFolder("/vol/external01/wiiu/apps/re3/data");
|
||||
_psCreateFolder("/vol/external01/wiiu/apps/re3/audio");
|
||||
|
||||
// read from content
|
||||
chdir("/vol/content");
|
||||
|
Loading…
Reference in New Issue
Block a user