mirror of
https://github.com/libretro/parallel-gx2.git
synced 2026-11-07 04:25:58 -10:00
Say which build wrote a log
Cemu names its build in the "Init" line, which a libretro core writes before its log.txt exists, so a log sent in never said which commit made it (sco8487). log.txt now names it under "Loaded title", and the frontend's log in the first line from retro_init. The hash is the one CMake takes from git at configure time, as it is for the standalone build. (cherry picked from commit e387d972eb8f4a2ae7a27ceb2d2ff992b556ffd8)
This commit is contained in:
1 parent
5837c4eb6c
commit
69049a592d
2 files changed
+6
-1
No files matched your search
@@ -203,6 +203,11 @@ void InfoLog_TitleLoaded()
|
||||
{
|
||||
uint64 titleId = CafeSystem::GetForegroundTitleId();
|
||||
cemuLog_log(LogType::Force, "------- Loaded title -------");
|
||||
#ifdef RETRO_CORE
|
||||
// The "Init" line that names the build is written before a libretro
|
||||
// core's log.txt exists, so a log sent in never said which commit made it.
|
||||
cemuLog_log(LogType::Force, "Build: {} (libretro)", BUILD_VERSION_WITH_NAME_STRING);
|
||||
#endif
|
||||
cemuLog_log(LogType::Force, "TitleId: {:08x}-{:08x}", (uint32)(titleId >> 32), (uint32)(titleId & 0xFFFFFFFF));
|
||||
cemuLog_log(LogType::Force, "TitleVersion: v{}", CafeSystem::GetForegroundTitleVersion());
|
||||
CafeConsoleRegion region = CafeSystem::GetForegroundTitleRegion();
|
||||
|
||||
@@ -2498,7 +2498,7 @@ RETRO_API void retro_init()
|
||||
// does not exist until the paths below are set up, so a core that dies in
|
||||
// here leaves nothing behind at all - which is exactly what jacklavin saw
|
||||
// when it started crashing at core selection, before any content.
|
||||
libretro_log(RETRO_LOG_INFO, "retro_init: start\n");
|
||||
libretro_log(RETRO_LOG_INFO, "retro_init: start (%s)\n", BUILD_VERSION_WITH_NAME_STRING);
|
||||
|
||||
LibretroAudioAPI::SetAudioCallback([](const int16_t* data, size_t frames) -> size_t {
|
||||
if (s_audio_submission_allowed && audio_batch_cb && data && frames > 0)
|
||||
|
||||
Reference in new issue
Block a user