2014-05-07 05:29:39 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-19 09:49:13 +01:00
|
|
|
// Refer to the license.txt file included.
|
2014-05-07 05:29:39 +02:00
|
|
|
|
2015-05-06 07:42:43 +02:00
|
|
|
#include <cstring>
|
|
|
|
|
|
|
|
#include "common/assert.h"
|
2014-05-07 05:29:39 +02:00
|
|
|
#include "common/common_types.h"
|
2015-02-13 05:57:02 +01:00
|
|
|
#include "common/common_funcs.h"
|
2014-05-07 05:29:39 +02:00
|
|
|
|
2015-02-13 05:57:02 +01:00
|
|
|
#include "core/core.h"
|
2015-05-13 03:38:29 +02:00
|
|
|
#include "core/memory.h"
|
2014-05-07 05:29:39 +02:00
|
|
|
#include "core/hle/config_mem.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
namespace ConfigMem {
|
|
|
|
|
2015-05-13 04:17:30 +02:00
|
|
|
ConfigMemDef config_mem;
|
2014-05-07 05:29:39 +02:00
|
|
|
|
2015-02-13 05:57:02 +01:00
|
|
|
void Init() {
|
2015-05-06 07:42:43 +02:00
|
|
|
std::memset(&config_mem, 0, sizeof(config_mem));
|
2015-04-28 04:45:43 +02:00
|
|
|
|
2015-02-13 05:57:02 +01:00
|
|
|
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;
|
2015-03-23 08:20:30 +01:00
|
|
|
config_mem.app_mem_type = 0x2; // Default app mem type is 0
|
|
|
|
config_mem.app_mem_alloc = 0x06000000; // Set to 96MB, since some games use more than the default (64MB)
|
2015-02-13 05:57:02 +01:00
|
|
|
config_mem.base_mem_alloc = 0x01400000; // Default base memory is 20MB
|
|
|
|
config_mem.sys_mem_alloc = Memory::FCRAM_SIZE - (config_mem.app_mem_alloc + config_mem.base_mem_alloc);
|
|
|
|
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;
|
|
|
|
}
|
2014-05-07 05:29:39 +02:00
|
|
|
|
|
|
|
} // namespace
|