From b9ae34cc3b2b0e2badd99f58e08dab9b7fc65965 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 9 Aug 2014 23:16:21 +0800 Subject: [PATCH 1/2] Show game title and ID in log --- rpcs3/Emu/System.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 3bf2af91bf..87d9b12369 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -16,6 +16,8 @@ #include "Emu/CPU/CPUThreadManager.h" //gui dependency +#include "../Loader/PSF.h" + #include "../Crypto/unself.h" #include #include @@ -165,6 +167,16 @@ void Emulator::Load() { LOG_NOTICE(LOADER, "%s -> %s", m_vfs.m_devices[i]->GetPs3Path().c_str(), m_vfs.m_devices[i]->GetLocalPath().c_str()); } + + LOG_NOTICE(LOADER, " ");//used to be skip_line + vfsFile sfo("/app_home/PARAM.SFO"); + PSFLoader psf(sfo); + psf.Load(false); + std::string title = psf.GetString("TITLE"); + std::string title_id = psf.GetString("TITLE_ID"); + LOG_NOTICE(LOADER, "Title: %s", title.c_str()); + LOG_NOTICE(LOADER, "Serial: %s", title_id.c_str()); + // bdvd inserting imitation vfsFile f1("/app_home/dev_bdvd.path"); if (f1.IsOpened()) From e49fcd4b2109121349f339f4467b2d5e94a567a0 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 9 Aug 2014 23:31:21 +0800 Subject: [PATCH 2/2] Fix typo --- rpcs3/Emu/Memory/Memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Memory/Memory.h b/rpcs3/Emu/Memory/Memory.h index a4ea0cfca7..6ed79d3b55 100644 --- a/rpcs3/Emu/Memory/Memory.h +++ b/rpcs3/Emu/Memory/Memory.h @@ -266,13 +266,13 @@ public: #endif { m_base_addr = nullptr; - LOG_ERROR(MEMORY, "Initing memory failed"); + LOG_ERROR(MEMORY, "Initialing memory failed"); assert(0); return; } else { - LOG_NOTICE(MEMORY, "Initing memory: m_base_addr = 0x%llx", (u64)m_base_addr); + LOG_NOTICE(MEMORY, "Initialing memory: m_base_addr = 0x%llx", (u64)m_base_addr); } switch(type)