mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
+9
-9
@@ -271,12 +271,12 @@ bool CPU_Init(std::string *errorString, FileLoader *loadedFile) {
|
||||
case IdentifiedFileType::PSP_PBP:
|
||||
case IdentifiedFileType::PSP_PBP_DIRECTORY:
|
||||
// This is normal for homebrew.
|
||||
// ERROR_LOG(LOADER, "PBP directory resolution failed.");
|
||||
// ERROR_LOG(Log::Loader, "PBP directory resolution failed.");
|
||||
InitMemoryForGamePBP(loadedFile);
|
||||
break;
|
||||
case IdentifiedFileType::PSP_ELF:
|
||||
if (Memory::g_PSPModel != PSP_MODEL_FAT) {
|
||||
INFO_LOG(LOADER, "ELF, using full PSP-2000 memory access");
|
||||
INFO_LOG(Log::Loader, "ELF, using full PSP-2000 memory access");
|
||||
Memory::g_MemorySize = Memory::RAM_DOUBLE_SIZE;
|
||||
}
|
||||
break;
|
||||
@@ -290,7 +290,7 @@ bool CPU_Init(std::string *errorString, FileLoader *loadedFile) {
|
||||
break;
|
||||
default:
|
||||
// Can we even get here?
|
||||
WARN_LOG(LOADER, "CPU_Init didn't recognize file. %s", errorString->c_str());
|
||||
WARN_LOG(Log::Loader, "CPU_Init didn't recognize file. %s", errorString->c_str());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -421,11 +421,11 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) {
|
||||
}
|
||||
|
||||
#if defined(_WIN32) && PPSSPP_ARCH(AMD64)
|
||||
NOTICE_LOG(BOOT, "PPSSPP %s Windows 64 bit", PPSSPP_GIT_VERSION);
|
||||
NOTICE_LOG(Log::Boot, "PPSSPP %s Windows 64 bit", PPSSPP_GIT_VERSION);
|
||||
#elif defined(_WIN32) && !PPSSPP_ARCH(AMD64)
|
||||
NOTICE_LOG(BOOT, "PPSSPP %s Windows 32 bit", PPSSPP_GIT_VERSION);
|
||||
NOTICE_LOG(Log::Boot, "PPSSPP %s Windows 32 bit", PPSSPP_GIT_VERSION);
|
||||
#else
|
||||
NOTICE_LOG(BOOT, "PPSSPP %s", PPSSPP_GIT_VERSION);
|
||||
NOTICE_LOG(Log::Boot, "PPSSPP %s", PPSSPP_GIT_VERSION);
|
||||
#endif
|
||||
|
||||
Core_NotifyLifecycle(CoreLifecycle::STARTING);
|
||||
@@ -704,7 +704,7 @@ Path GetSysDirectory(PSPDirectories directoryType) {
|
||||
return g_Config.memStickDirectory;
|
||||
// Just return the memory stick root if we run into some sort of problem.
|
||||
default:
|
||||
ERROR_LOG(FILESYS, "Unknown directory type.");
|
||||
ERROR_LOG(Log::FileSystem, "Unknown directory type.");
|
||||
return g_Config.memStickDirectory;
|
||||
}
|
||||
}
|
||||
@@ -717,10 +717,10 @@ bool CreateSysDirectories() {
|
||||
#endif
|
||||
|
||||
Path pspDir = GetSysDirectory(DIRECTORY_PSP);
|
||||
INFO_LOG(IO, "Creating '%s' and subdirs:", pspDir.c_str());
|
||||
INFO_LOG(Log::IO, "Creating '%s' and subdirs:", pspDir.c_str());
|
||||
File::CreateDir(pspDir);
|
||||
if (!File::Exists(pspDir)) {
|
||||
INFO_LOG(IO, "Not a workable memstick directory. Giving up");
|
||||
INFO_LOG(Log::IO, "Not a workable memstick directory. Giving up");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user