MCPcopy Create free account
hub / github.com/cemu-project/Cemu / InfoLog_TitleLoaded

Function InfoLog_TitleLoaded

src/Cafe/CafeSystem.cpp:205–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void 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
241void InfoLog_PrintActiveSettings()
242{

Callers 1

cemu_initForGameFunction · 0.85

Calls 11

cemuLog_createLogFileFunction · 0.85
GetForegroundTitleIdFunction · 0.85
GetForegroundTitleRegionFunction · 0.85
getTitleSavePathFunction · 0.85
_pathToUtf8Function · 0.85
formatFunction · 0.85
IsDefaultProfileMethod · 0.80
IsLoadedMethod · 0.80
cemuLog_logFunction · 0.50

Tested by

no test coverage detected