mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-08 02:00:17 -04:00
use persistent data directory
This commit is contained in:
@@ -5,8 +5,12 @@
|
||||
namespace randomizer::paths {
|
||||
|
||||
std::filesystem::path GetRandomizerPath() {
|
||||
// TODO: need a more permanent directory than this
|
||||
return session::svc_mng.host->mod_dir(session::svc_mng.mod_ctx);
|
||||
const char* dataDir = nullptr;
|
||||
if (session::svc_mng.host->data_dir(session::svc_mng.mod_ctx, &dataDir) != MOD_OK) {
|
||||
session::svc_mng.host->fail(session::svc_mng.mod_ctx, MOD_ERROR, "Failed to get data directory");
|
||||
}
|
||||
|
||||
return dataDir;
|
||||
}
|
||||
|
||||
std::filesystem::path GetRandomizerSettingsPath() {
|
||||
|
||||
Reference in New Issue
Block a user