Fix extending containers. Update and implement SVI files.

This commit is contained in:
J-D-K
2025-06-09 14:22:24 -04:00
parent e355b99918
commit 69f728b29b
13 changed files with 231 additions and 44 deletions

View File

@@ -71,12 +71,6 @@ JKSV::JKSV(void)
ABORT_ON_FAILURE(initialize_service(setsysInitialize, "SetSys"));
ABORT_ON_FAILURE(initialize_service(socketInitializeDefault, "Socket"));
// JKSV doesn't really need the full GPU going so.
if (R_FAILED(appletSetCpuBoostMode(ApmCpuBoostMode_FastLoad)))
{
logger::log("Error setting CPU boost mode!");
}
// Input doesn't have anything to return.
input::initialize();
@@ -91,6 +85,14 @@ JKSV::JKSV(void)
return;
}
// I'd rather this be here than checked every time one is exported.
fslib::Path sviDir = config::get_working_directory() / "svi";
if (!fslib::directory_exists(sviDir) && !fslib::create_directories_recursively(sviDir))
{
// This one isn't fatal, but it can be super fatal later if this fails.
logger::log("Error creating svi directory: %s", fslib::get_error_string());
}
// JKSV also has no internal strings anymore. This is FATAL now.
ABORT_ON_FAILURE(strings::initialize());
@@ -125,8 +127,6 @@ JKSV::~JKSV()
// Try to save config first.
config::save();
// Not sure if this one is really needed, but just in case.
appletSetCpuBoostMode(ApmCpuBoostMode_Normal);
socketExit();
setsysExit();
setExit();