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);