mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
Fix uninitialized movable check on artic setup
This commit is contained in:
parent
643f53f5f2
commit
54b997473d
1 changed files with 9 additions and 2 deletions
|
|
@ -425,8 +425,15 @@ ResultStatus Apploader_Artic::Load(std::shared_ptr<Kernel::Process>& process) {
|
|||
return ResultStatus::ErrorArtic;
|
||||
|
||||
auto resp_buff = resp->GetResponseBuffer(0);
|
||||
if (!resp_buff.has_value() || resp_buff->second != expected_size)
|
||||
return ResultStatus::ErrorArtic;
|
||||
if (!resp_buff.has_value() || resp_buff->second != expected_size) {
|
||||
if (resp_buff.has_value() && i == 2 &&
|
||||
resp_buff->second == sizeof(HW::UniqueData::MovableSed)) {
|
||||
// Account for uninitialized movable files
|
||||
expected_size = sizeof(HW::UniqueData::MovableSed);
|
||||
} else {
|
||||
return ResultStatus::ErrorArtic;
|
||||
}
|
||||
}
|
||||
|
||||
if (i < 4) {
|
||||
FileUtil::CreateFullPath(path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue