mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-14 10:59:58 +01:00
Fix uninitialized movable check on artic setup
This commit is contained in:
parent
0eb4a71720
commit
9d03856026
@ -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…
x
Reference in New Issue
Block a user