mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-05 23:03:46 +00:00
74d4bc0af1
This adds some structures necessary to support multiple memory regions in the future. It also adds support for different system memory types and the new linear heap mapping at 0x30000000.
35 lines
914 B
C++
35 lines
914 B
C++
// Copyright 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <cstring>
|
|
|
|
#include "common/assert.h"
|
|
#include "common/common_types.h"
|
|
#include "common/common_funcs.h"
|
|
|
|
#include "core/core.h"
|
|
#include "core/memory.h"
|
|
#include "core/hle/config_mem.h"
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
namespace ConfigMem {
|
|
|
|
ConfigMemDef config_mem;
|
|
|
|
void Init() {
|
|
std::memset(&config_mem, 0, sizeof(config_mem));
|
|
|
|
config_mem.update_flag = 0; // No update
|
|
config_mem.sys_core_ver = 0x2;
|
|
config_mem.unit_info = 0x1; // Bit 0 set for Retail
|
|
config_mem.prev_firm = 0;
|
|
config_mem.firm_unk = 0;
|
|
config_mem.firm_version_rev = 0;
|
|
config_mem.firm_version_min = 0x40;
|
|
config_mem.firm_version_maj = 0x2;
|
|
config_mem.firm_sys_core_ver = 0x2;
|
|
}
|
|
|
|
} // namespace
|