mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-12 12:35:26 -05:00
Add fs::ScopedSaveMount
This commit is contained in:
@@ -192,6 +192,11 @@ void BackupMenuState::initialize_info_string()
|
||||
|
||||
void BackupMenuState::save_data_check()
|
||||
{
|
||||
const uint64_t applicationID = m_titleInfo->get_application_id();
|
||||
const FsSaveDataInfo *saveInfo = m_user->get_save_info_by_id(applicationID);
|
||||
if (error::is_null(saveInfo)) { return; }
|
||||
|
||||
fs::ScopedSaveMount saveMount{fs::DEFAULT_SAVE_MOUNT, saveInfo};
|
||||
fslib::Directory saveRoot{fs::DEFAULT_SAVE_ROOT};
|
||||
m_saveHasData = saveRoot.is_open() && saveRoot.get_count() > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user