mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-05-24 15:21:16 -04:00
Move config and save data to %APPDATA%
This commit is contained in:
@@ -39,14 +39,12 @@ void KiSystemStartup()
|
||||
XamRegisterContent(gameContent, DirectoryExists(".\\game") ? ".\\game" : ".");
|
||||
XamRegisterContent(updateContent, ".\\update");
|
||||
|
||||
if (FileExists(".\\save\\SYS-DATA"))
|
||||
{
|
||||
XamRegisterContent(XamMakeContent(XCONTENTTYPE_SAVEDATA, "SYS-DATA"), ".\\save");
|
||||
}
|
||||
else if (FileExists(".\\SYS-DATA"))
|
||||
{
|
||||
XamRegisterContent(XamMakeContent(XCONTENTTYPE_SAVEDATA, "SYS-DATA"), ".");
|
||||
}
|
||||
const auto savePath = Config::GetUserPath() / "save";
|
||||
const auto saveName = "SYS-DATA";
|
||||
|
||||
// TODO: implement save slots?
|
||||
if (std::filesystem::exists(savePath / saveName))
|
||||
XamRegisterContent(XamMakeContent(XCONTENTTYPE_SAVEDATA, saveName), savePath.string());
|
||||
|
||||
// Mount game
|
||||
XamContentCreateEx(0, "game", &gameContent, OPEN_EXISTING, nullptr, nullptr, 0, 0, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user