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