| 203 | } |
| 204 | |
| 205 | void InfoLog_TitleLoaded() |
| 206 | { |
| 207 | cemuLog_createLogFile(false); |
| 208 | uint64 titleId = CafeSystem::GetForegroundTitleId(); |
| 209 | cemuLog_log(LogType::Force, "------- Loaded title -------"); |
| 210 | cemuLog_log(LogType::Force, "TitleId: {:08x}-{:08x}", (uint32)(titleId >> 32), (uint32)(titleId & 0xFFFFFFFF)); |
| 211 | cemuLog_log(LogType::Force, "TitleVersion: v{}", CafeSystem::GetForegroundTitleVersion()); |
| 212 | CafeConsoleRegion region = CafeSystem::GetForegroundTitleRegion(); |
| 213 | if(region == CafeConsoleRegion::JPN) |
| 214 | cemuLog_log(LogType::Force, "TitleRegion: JP"); |
| 215 | else if (region == CafeConsoleRegion::EUR) |
| 216 | cemuLog_log(LogType::Force, "TitleRegion: EU"); |
| 217 | else if (region == CafeConsoleRegion::USA) |
| 218 | cemuLog_log(LogType::Force, "TitleRegion: US"); |
| 219 | |
| 220 | fs::path effectiveSavePath = getTitleSavePath(); |
| 221 | std::error_code ec; |
| 222 | const bool saveDirExists = fs::exists(effectiveSavePath, ec); |
| 223 | cemuLog_log(LogType::Force, "Save path: {}{}", _pathToUtf8(effectiveSavePath), saveDirExists ? "" : " (not present)"); |
| 224 | |
| 225 | // log shader cache name |
| 226 | cemuLog_log(LogType::Force, "Shader cache file: shaderCache/transferable/{:016x}.bin", titleId); |
| 227 | // game profile info |
| 228 | std::string gameProfilePath; |
| 229 | if(g_current_game_profile->IsDefaultProfile()) |
| 230 | gameProfilePath = fmt::format("gameProfiles/default/{:016x}.ini", titleId); |
| 231 | else |
| 232 | gameProfilePath = fmt::format("gameProfiles/{:016x}.ini", titleId); |
| 233 | cemuLog_log(LogType::Force, "gameprofile path: {}", g_current_game_profile->IsLoaded() ? gameProfilePath : std::string(" (not present)")); |
| 234 | // rpx hash of updated game |
| 235 | cemuLog_log(LogType::Force, "RPX hash (updated): {:08x}", currentUpdatedApplicationHash); |
| 236 | cemuLog_log(LogType::Force, "RPX hash (base): {:08x}", currentBaseApplicationHash); |
| 237 | |
| 238 | memory_logModifiedMemoryRanges(); |
| 239 | } |
| 240 | |
| 241 | void InfoLog_PrintActiveSettings() |
| 242 | { |
no test coverage detected