more refactoring
This commit is contained in:
parent
4aa4f4ade9
commit
c0e1ace5fc
|
@ -18,6 +18,7 @@ include_directories(third-party/zydis/include/Zydis)
|
||||||
include_directories(third-party/winpthread/include)
|
include_directories(third-party/winpthread/include)
|
||||||
add_subdirectory("third-party")
|
add_subdirectory("third-party")
|
||||||
#=================== EXAMPLE ===================
|
#=================== EXAMPLE ===================
|
||||||
|
include_directories(src)
|
||||||
|
|
||||||
add_executable(shadps4
|
add_executable(shadps4
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "../../../../types.h"
|
#include <types.h>
|
||||||
|
|
||||||
// constants
|
// constants
|
||||||
|
|
||||||
constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = 5376_MB;// ~ 6GB
|
constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = 5376_MB; // ~ 6GB
|
||||||
|
|
||||||
//memory types
|
// memory types
|
||||||
constexpr int SCE_KERNEL_WB_ONION = 0;//write - back mode (Onion bus)
|
constexpr int SCE_KERNEL_WB_ONION = 0; // write - back mode (Onion bus)
|
||||||
constexpr int SCE_KERNEL_WC_GARLIC = 3;//write - combining mode (Garlic bus)
|
constexpr int SCE_KERNEL_WC_GARLIC = 3; // write - combining mode (Garlic bus)
|
||||||
constexpr int SCE_KERNEL_WB_GARLIC = 10;//write - back mode (Garlic bus)
|
constexpr int SCE_KERNEL_WB_GARLIC = 10; // write - back mode (Garlic bus)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../../../types.h"
|
#include <types.h>
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::MemoryManagement {
|
namespace HLE::Libs::LibKernel::MemoryManagement {
|
||||||
|
|
||||||
u64 PS4_SYSV_ABI sceKernelGetDirectMemorySize();
|
u64 PS4_SYSV_ABI sceKernelGetDirectMemorySize();
|
||||||
int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u64 len, u64 alignment, int memoryType, s64* physAddrOut);
|
int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u64 len, u64 alignment, int memoryType, s64* physAddrOut);
|
||||||
|
|
||||||
};
|
}; // namespace HLE::Libs::LibKernel::MemoryManagement
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <types.h>
|
||||||
|
|
||||||
#include "../../../../../types.h"
|
#include <vector>
|
||||||
|
|
||||||
namespace HLE::Kernel::Objects {
|
namespace HLE::Kernel::Objects {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue