mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 00:59:17 +01:00
Move namespaces to core::
This commit is contained in:
parent
2f24f28084
commit
39b591bcfd
@ -1,5 +1,5 @@
|
|||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace core {
|
||||||
|
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
|
|
||||||
namespace Core {
|
namespace core {
|
||||||
class Cpu {
|
class Cpu {
|
||||||
private:
|
private:
|
||||||
uc_engine *uc;
|
uc_engine *uc;
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
std::vector<mem::MemoryRegion> memRegions;
|
namespace core::mem {
|
||||||
|
std::vector<MemoryRegion> memRegions;
|
||||||
|
|
||||||
namespace mem {
|
|
||||||
bool Map(uc_engine* uc, uint64_t address, size_t size, std::string label) {
|
bool Map(uc_engine* uc, uint64_t address, size_t size, std::string label) {
|
||||||
void* ptr = mmap((void*)(address), size, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, 0, 0);
|
void* ptr = mmap((void*)(address), size, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, 0, 0);
|
||||||
if(!ptr)
|
if(!ptr)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#define MEM_BASE 0x80000000
|
#define MEM_BASE 0x80000000
|
||||||
|
|
||||||
namespace mem {
|
namespace core::mem {
|
||||||
struct MemoryRegion {
|
struct MemoryRegion {
|
||||||
std::string label;
|
std::string label;
|
||||||
uint64_t address;
|
uint64_t address;
|
||||||
|
@ -15,7 +15,7 @@ void ReadDataFromFile(std::string file, char* output, uint32_t offset, size_t si
|
|||||||
f.close();
|
f.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace loader {
|
namespace core::loader {
|
||||||
bool LoadNro(std::string file) {
|
bool LoadNro(std::string file) {
|
||||||
syslog(LOG_INFO, "Loading NRO file %s\n", file.c_str());
|
syslog(LOG_INFO, "Loading NRO file %s\n", file.c_str());
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace loader {
|
namespace core::loader {
|
||||||
struct NroSegmentHeader {
|
struct NroSegmentHeader {
|
||||||
uint32_t fileOffset;
|
uint32_t fileOffset;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
Loading…
Reference in New Issue
Block a user