More refactoring. Start to completely implement remote storage.

This commit is contained in:
J-D-K
2025-07-24 10:07:57 -04:00
parent 35825a6bb5
commit 851d969e9c
62 changed files with 1466 additions and 2006 deletions

View File

@@ -3,10 +3,12 @@
#include "StateManager.hpp"
#include "appstates/TaskState.hpp"
#include "data/data.hpp"
#include "error.hpp"
#include "fs/fs.hpp"
#include "input.hpp"
#include "logger.hpp"
#include "strings.hpp"
#include "stringutil.hpp"
#include "system/Task.hpp"
#include "ui/PopMessageManager.hpp"
@@ -92,8 +94,14 @@ static void create_save_data(sys::Task *task,
data::TitleInfo *titleInfo,
SaveCreateState *spawningState)
{
// Set status. We'll just borrow the string from the other group.
task->set_status(strings::get_by_name(strings::names::USEROPTION_STATUS, 0), titleInfo->get_title());
if (error::is_null(task)) { return; }
const char *statusTemplate = strings::get_by_name(strings::names::USEROPTION_STATUS, 0);
{
const std::string status = stringutil::get_formatted_string(statusTemplate, titleInfo->get_title());
task->set_status(status);
}
if (fs::create_save_data_for(targetUser, titleInfo))
{