MiscFixes11 (#984)

* fixed an issue in sceSaveDataSetSaveDataMemory , makes chariot CUSA00739 goes ingame

* added branch name into sdl window title
This commit is contained in:
georgemoralis 2024-09-19 18:46:07 +03:00 committed by GitHub
parent d07c81e0d2
commit 7b8bc90157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -730,12 +730,13 @@ int PS4_SYSV_ABI sceSaveDataSetSaveDataMemory(const u32 userId, const void* buf,
const size_t bufSize, const int64_t offset) {
LOG_INFO(Lib_SaveData, "called");
const auto& mount_dir = Common::FS::GetUserPath(Common::FS::PathType::SaveDataDir) /
std::to_string(userId) / game_serial / "sdmemory/save_mem1.sav";
std::to_string(userId) / game_serial / "sdmemory";
Common::FS::IOFile file(mount_dir, Common::FS::FileAccessMode::Write);
Common::FS::IOFile file(mount_dir / "save_mem1.sav", Common::FS::FileAccessMode::Write);
if (!file.IsOpen())
return -1;
file.Seek(offset);
file.WriteRaw<u8>(buf, bufSize);
return ORBIS_OK;
}

View file

@ -141,8 +141,8 @@ void Emulator::Run(const std::filesystem::path& file) {
if (Common::isRelease) {
window_title = fmt::format("shadPS4 v{} | {}", Common::VERSION, game_title);
} else {
window_title =
fmt::format("shadPS4 v{} {} | {}", Common::VERSION, Common::g_scm_desc, game_title);
window_title = fmt::format("shadPS4 v{} {} {} | {}", Common::VERSION, Common::g_scm_branch,
Common::g_scm_desc, game_title);
}
window = std::make_unique<Frontend::WindowSDL>(
Config::getScreenWidth(), Config::getScreenHeight(), controller, window_title);