libstrat: fix domain issues. in/out objects now work.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace sts::cfg {
|
||||
|
||||
/* Mount the SD card. */
|
||||
FsFileSystem sd_fs = {};
|
||||
if (R_FAILED(fsMountSdcard(&sd_fs))) {
|
||||
if (R_FAILED(fsOpenSdCardFileSystem(&sd_fs))) {
|
||||
return false;
|
||||
}
|
||||
ON_SCOPE_EXIT { serviceClose(&sd_fs.s); };
|
||||
|
||||
@@ -178,7 +178,7 @@ namespace sts::cfg {
|
||||
void ParseIniFile(util::ini::Handler handler, const char *path, void *user_ctx) {
|
||||
/* Mount the SD card. */
|
||||
FsFileSystem sd_fs = {};
|
||||
if (R_FAILED(fsMountSdcard(&sd_fs))) {
|
||||
if (R_FAILED(fsOpenSdCardFileSystem(&sd_fs))) {
|
||||
return;
|
||||
}
|
||||
ON_SCOPE_EXIT { serviceClose(&sd_fs.s); };
|
||||
|
||||
@@ -58,14 +58,14 @@ namespace sts::cfg {
|
||||
|
||||
Result TryInitializeSdCard() {
|
||||
R_TRY(CheckSdCardServicesReady());
|
||||
R_ASSERT(fsMountSdcard(&g_sd_card_filesystem));
|
||||
R_ASSERT(fsOpenSdCardFileSystem(&g_sd_card_filesystem));
|
||||
g_sd_card_initialized = true;
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
||||
void InitializeSdCard() {
|
||||
WaitSdCardServicesReadyImpl();
|
||||
R_ASSERT(fsMountSdcard(&g_sd_card_filesystem));
|
||||
R_ASSERT(fsOpenSdCardFileSystem(&g_sd_card_filesystem));
|
||||
g_sd_card_initialized = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user