fixed injecting large data

This commit is contained in:
Maschell 2015-10-25 23:18:52 +01:00
parent f215d3b13e
commit 6678686014
3 changed files with 3 additions and 3 deletions

2
README
View File

@ -20,7 +20,7 @@ Note :
- make sure that your game version and the game version from injecting save are the same - make sure that your game version and the game version from injecting save are the same
- e.g. injecting PAL saves into NTSC one is untested! - e.g. injecting PAL saves into NTSC one is untested!
NOTE FOR SUPER SMASH BROS FOR WIIU the common data is too big to inject at one time. injecting the common folder will fail. try to split the files up and use the inject without clean to inject the data without the texture folder. MAKE SURE TO MAKE A BACKUP! This may also applies to other games NOTE FOR SUPER SMASH BROS FOR WIIU the common data is too big to inject at one time. The data will may be flushed at some time. automaticly restoring the data after flushing is not possible. MAKE SURE TO MAKE A BACKUP! This may also applies to other gaames
The WiiU has mutiple save folder. One folder for infos that are shared with all accounts (common) and a folder for each account (e.g 8000000a) The WiiU has mutiple save folder. One folder for infos that are shared with all accounts (common) and a folder for each account (e.g 8000000a)
At the moment it is only possible to dump the common folder your own folder. Not all games use the common folder. At the moment it is only possible to dump the common folder your own folder. Not all games use the common folder.

View File

@ -474,8 +474,8 @@ int doInjectForFile(void * pClient, void * pCmd,int handle,char * filepath,int f
if(DEBUG_LOG)__os_snprintf(logbuffer, sizeof(logbuffer), "wrote %d",retsize); if(DEBUG_LOG)__os_snprintf(logbuffer, sizeof(logbuffer), "wrote %d",retsize);
if(DEBUG_LOG) log_string(bss.logsock, logbuffer, BYTE_LOG_STR); if(DEBUG_LOG) log_string(bss.logsock, logbuffer, BYTE_LOG_STR);
}else{ }else{
if(fwrite == FS_STATUS_JOURNAL_FULL){ if(fwrite == FS_STATUS_JOURNAL_FULL || fwrite == FS_STATUS_STORAGE_FULL){
log_string(bss.logsock, "journal is full, flushing it now.", BYTE_LOG_STR); log_string(bss.logsock, "journal or storage is full, flushing it now.", BYTE_LOG_STR);
if(FSFlushQuota(pClient,pCmd,basepath,FS_RET_ALL_ERROR) == FS_STATUS_OK){ if(FSFlushQuota(pClient,pCmd,basepath,FS_RET_ALL_ERROR) == FS_STATUS_OK){
log_string(bss.logsock, "success", BYTE_LOG_STR); log_string(bss.logsock, "success", BYTE_LOG_STR);
failed = 2; failed = 2;

Binary file not shown.