mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-02-01 15:23:32 +00:00
Fix savedata_factory.cpp
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <chrono>
|
||||
@@ -247,7 +248,7 @@ Result SaveDataFactory::ReadSaveDataExtraData(SaveDataExtraData* out_extra_data,
|
||||
save_directory);
|
||||
|
||||
// Return zeroed data
|
||||
std::memset(out_extra_data, 0, sizeof(SaveDataExtraData));
|
||||
*out_extra_data = {}; // Or: *out_extra_data = SaveDataExtraData{};
|
||||
out_extra_data->attr = attribute;
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user