mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-13 04:55:18 -05:00
Get Text mode working.
This commit is contained in:
@@ -439,11 +439,10 @@ static void delete_save_data_from_system(sys::Task *task, std::shared_ptr<TitleO
|
||||
|
||||
static void extend_save_data(sys::Task *task, std::shared_ptr<TitleOptionState::DataStruct> dataStruct)
|
||||
{
|
||||
// This is just to make stuff easier to read.
|
||||
// Grab this stuff to make stuff easier to read and type.
|
||||
data::TitleInfo *titleInfo = dataStruct->m_titleInfo;
|
||||
|
||||
// Grab this quick.
|
||||
FsSaveDataInfo *saveInfo = dataStruct->m_user->get_save_info_by_id(titleInfo->get_application_id());
|
||||
|
||||
if (!saveInfo)
|
||||
{
|
||||
logger::log("Error retrieving save data info to extend!");
|
||||
@@ -451,7 +450,6 @@ static void extend_save_data(sys::Task *task, std::shared_ptr<TitleOptionState::
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Set the status.
|
||||
task->set_status(strings::get_by_name(strings::names::TITLE_OPTION_STATUS, 3),
|
||||
dataStruct->m_user->get_nickname(),
|
||||
@@ -472,8 +470,8 @@ static void extend_save_data(sys::Task *task, std::shared_ptr<TitleOptionState::
|
||||
// Convert input to number and multiply it by 1MB. To do: Check if this is valid before continuing?
|
||||
int64_t size = std::strtoll(buffer, NULL, 10) * 0x100000;
|
||||
|
||||
// Grab the journal size. Going max is probably a good idea here in case games increase it.
|
||||
int64_t journalSize = titleInfo->get_journal_size_max(saveInfo->save_data_type);
|
||||
// Grab the journal size.
|
||||
int64_t journalSize = titleInfo->get_journal_size(saveInfo->save_data_type);
|
||||
|
||||
// To do: Check this and toast message.
|
||||
fs::extend_save_data(saveInfo, size, journalSize);
|
||||
|
||||
Reference in New Issue
Block a user