From b69ce62a5d551fe02a8c342e983dbfca9a135fdf Mon Sep 17 00:00:00 2001 From: Jujstme Date: Wed, 19 Mar 2025 23:21:42 +0100 Subject: [PATCH] Apply suggestion --- .vscode/settings.json | 5 +++++ UnleashedRecomp/main.cpp | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d8cb326 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "string": "cpp" + } +} \ No newline at end of file diff --git a/UnleashedRecomp/main.cpp b/UnleashedRecomp/main.cpp index 2186a3a..b27a89d 100644 --- a/UnleashedRecomp/main.cpp +++ b/UnleashedRecomp/main.cpp @@ -61,8 +61,12 @@ void KiSystemStartup() { const auto gameContent = XamMakeContent(XCONTENTTYPE_RESERVED, "Game"); const auto updateContent = XamMakeContent(XCONTENTTYPE_RESERVED, "Update"); - XamRegisterContent(gameContent, (g_gameInstallPath / "game").string()); - XamRegisterContent(updateContent, (g_gameInstallPath / "update").string()); + + std::u8string gamePathU8 = (g_gameInstallPath / "game").u8string(); + std::u8string updatePathU8 = (g_gameInstallPath / "update").u8string(); + + XamRegisterContent(gameContent, (const char*)(gamePathU8.c_str())); + XamRegisterContent(updateContent, (const char*)(updatePathU8.c_str())); const auto saveFilePath = GetSaveFilePath(true); bool saveFileExists = std::filesystem::exists(saveFilePath);