From cad3a6c5475292e22acee866f0089b5cc951e811 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 30 Nov 2020 03:18:29 +0300 Subject: [PATCH] sceNp.cpp: fix some UTF-8 string mismatch --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 60127eda92..f0817e050a 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -550,7 +550,7 @@ error_code sceNpDrmVerifyUpgradeLicense(vm::cptr content_id) const std::string content_str(content_id.get_ptr(), std::find(content_id.get_ptr(), content_id.get_ptr() + 0x2f, '\0')); - sceNp.warning("sceNpDrmVerifyUpgradeLicense(): content_id=“%s”", content_id); + sceNp.warning(u8"sceNpDrmVerifyUpgradeLicense(): content_id=“%s”", content_id); if (!fs::is_file(vfs::get("/dev_hdd0/home/" + Emu.GetUsr() + "/exdata/" + content_str + ".rap"))) { @@ -573,7 +573,7 @@ error_code sceNpDrmVerifyUpgradeLicense2(vm::cptr content_id) const std::string content_str(content_id.get_ptr(), std::find(content_id.get_ptr(), content_id.get_ptr() + 0x2f, '\0')); - sceNp.warning("sceNpDrmVerifyUpgradeLicense2(): content_id=“%s”", content_id); + sceNp.warning(u8"sceNpDrmVerifyUpgradeLicense2(): content_id=“%s”", content_id); if (!fs::is_file(vfs::get("/dev_hdd0/home/" + Emu.GetUsr() + "/exdata/" + content_str + ".rap"))) { @@ -4766,7 +4766,7 @@ error_code sceNpUtilCmpNpIdInOrder(vm::cptr id1, vm::cptr id2, if (opt14 == 0 && opt24 == 0) { *order = 0; - return CELL_OK; + return CELL_OK; } if (opt14 != 0 && opt24 != 0) @@ -4819,7 +4819,7 @@ error_code sceNpUtilGetPlatformType(vm::cptr npId) case "psp2"_u32: return not_an_error(SCE_NP_PLATFORM_TYPE_VITA); case "ps3\0"_u32: - return not_an_error(SCE_NP_PLATFORM_TYPE_PS3); + return not_an_error(SCE_NP_PLATFORM_TYPE_PS3); case 0u: return not_an_error(SCE_NP_PLATFORM_TYPE_NONE); default: