mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
Migrate force_log_printf to new logging (#714)
This commit is contained in:
parent
072c18a6e3
commit
4be57f4896
108 changed files with 401 additions and 399 deletions
|
@ -1497,7 +1497,7 @@ void nnBossNsDataExport_DeleteRealFileWithHistory(PPCInterpreter_t* hCPU)
|
|||
if (nsData->storage.storageKind == nn::boss::kStorageKind_NBDL)
|
||||
{
|
||||
// todo
|
||||
forceLog_printf("BOSS NBDL: Unsupported delete");
|
||||
cemuLog_log(LogType::Force, "BOSS NBDL: Unsupported delete");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1505,7 +1505,7 @@ void nnBossNsDataExport_DeleteRealFileWithHistory(PPCInterpreter_t* hCPU)
|
|||
std::string filePath = nnBossNsDataExport_GetPath(nsData).c_str();
|
||||
fsc_remove((char*)filePath.c_str(), &fscStatus);
|
||||
if (fscStatus != 0)
|
||||
forceLog_printf("Unhandeled FSC status in BOSS DeleteRealFileWithHistory()");
|
||||
cemuLog_log(LogType::Force, "Unhandeled FSC status in BOSS DeleteRealFileWithHistory()");
|
||||
}
|
||||
osLib_returnFromFunction(hCPU, 0);
|
||||
}
|
||||
|
@ -1551,7 +1551,7 @@ void nnBossNsDataExport_getSize(PPCInterpreter_t* hCPU)
|
|||
bossStorageFadEntry_t fadEntry;
|
||||
if (nnBossStorageFad_getEntryByName(&nsData->storage, nsData->name, &fadEntry) == false)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant find file %s", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant find file {}", nsData->name);
|
||||
osLib_returnFromFunction(hCPU, 0);
|
||||
return;
|
||||
}
|
||||
|
@ -1566,7 +1566,7 @@ void nnBossNsDataExport_getSize(PPCInterpreter_t* hCPU)
|
|||
|
||||
if (fscStorageFile == nullptr)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant open file alias %s", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant open file alias {}", nsData->name);
|
||||
osLib_returnFromFunction(hCPU, 0);
|
||||
return;
|
||||
}
|
||||
|
@ -1586,7 +1586,7 @@ uint32 nnBossNsData_read(nsData_t* nsData, uint64* sizeOutBE, void* buffer, sint
|
|||
bossStorageFadEntry_t fadEntry;
|
||||
if (nnBossStorageFad_getEntryByName(&nsData->storage, nsData->name, &fadEntry) == false)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant find file %s for reading", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant find file {} for reading", nsData->name);
|
||||
return 0x80000000; // todo - proper error code
|
||||
}
|
||||
// open file
|
||||
|
@ -1600,7 +1600,7 @@ uint32 nnBossNsData_read(nsData_t* nsData, uint64* sizeOutBE, void* buffer, sint
|
|||
|
||||
if (!fscStorageFile)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant open file alias %s for reading", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant open file alias {} for reading", nsData->name);
|
||||
return 0x80000000; // todo - proper error code
|
||||
}
|
||||
// get size
|
||||
|
@ -1635,7 +1635,7 @@ uint32 nnBossNsData_seek(nsData_t* nsData, uint64 seek, uint32 mode)
|
|||
bossStorageFadEntry_t fadEntry;
|
||||
if (nnBossStorageFad_getEntryByName(&nsData->storage, nsData->name, &fadEntry) == false)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant find file %s for reading", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant find file {} for reading", nsData->name);
|
||||
return 0x80000000; // todo - proper error code
|
||||
}
|
||||
// open file
|
||||
|
@ -1649,7 +1649,7 @@ uint32 nnBossNsData_seek(nsData_t* nsData, uint64 seek, uint32 mode)
|
|||
|
||||
if (fscStorageFile == nullptr)
|
||||
{
|
||||
forceLog_printf("BOSS storage cant open file alias %s for reading", nsData->name);
|
||||
cemuLog_log(LogType::Force, "BOSS storage cant open file alias {} for reading", nsData->name);
|
||||
return 0x80000000; // todo - proper error code
|
||||
}
|
||||
// get size
|
||||
|
@ -1801,4 +1801,4 @@ void nnBoss_load()
|
|||
osLib_addFunction("nn_boss", "Read__Q3_2nn4boss6NsDataFPLPvUi", nnBossNsDataExport_readWithSizeOut);
|
||||
osLib_addFunction("nn_boss", "Seek__Q3_2nn4boss6NsDataFLQ3_2nn4boss12PositionBase", nnBossNsDataExport_seek);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue