System: Add Error to boot/load/save state

This commit is contained in:
Stenzek
2024-04-11 13:42:10 +10:00
parent f75a5605eb
commit 1b1e42d003
8 changed files with 201 additions and 115 deletions

View File

@ -662,11 +662,12 @@ int main(int argc, char* argv[])
RegTestHost::HookSignals();
Error error;
int result = -1;
Log_InfoPrintf("Trying to boot '%s'...", autoboot->filename.c_str());
if (!System::BootSystem(std::move(autoboot.value())))
if (!System::BootSystem(std::move(autoboot.value()), &error))
{
Log_ErrorPrint("Failed to boot system.");
Log_ErrorFmt("Failed to boot system: {}", error.GetDescription());
goto cleanup;
}