src: Move certain headers in common
This commit is contained in:
parent
6e28ac711f
commit
17aefc1aef
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
namespace Emulator::Host::Controller {
|
namespace Emulator::Host::Controller {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Lib {
|
namespace Lib {
|
||||||
class Timer final
|
class Timer final
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Config {
|
namespace Config {
|
||||||
void load(const std::filesystem::path& path);
|
void load(const std::filesystem::path& path);
|
||||||
|
@ -12,4 +12,4 @@ u32 getLogLevel();
|
||||||
u32 getScreenWidth();
|
u32 getScreenWidth();
|
||||||
u32 getScreenHeight();
|
u32 getScreenHeight();
|
||||||
|
|
||||||
}; // namespace Config
|
}; // namespace Config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "Disassembler.h"
|
#include "common/disassembler.h"
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
Disassembler::Disassembler()
|
Disassembler::Disassembler()
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Zydis/Zydis.h>
|
#include <Zydis/Zydis.h>
|
||||||
#include "../types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
class Disassembler
|
class Disassembler
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
#include "FsFile.h"
|
#include "common/fs_file.h"
|
||||||
|
|
||||||
namespace Common::FS {
|
namespace Common::FS {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "../types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Common::FS {
|
namespace Common::FS {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#include "string_util.h"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "common/string_util.h"
|
||||||
|
|
||||||
namespace StringUtil {
|
namespace StringUtil {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <xxh3.h>
|
#include <xxh3.h>
|
||||||
|
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
|
|
||||||
void* GPU::memoryCreateObj(u64 submit_id, HLE::Libs::Graphics::GraphicCtx* ctx, void* todo /*CommandBuffer?*/, u64 virtual_addr, u64 size,
|
void* GPU::memoryCreateObj(u64 submit_id, HLE::Libs::Graphics::GraphicCtx* ctx, void* todo /*CommandBuffer?*/, u64 virtual_addr, u64 size,
|
||||||
const GPUObject& info) {
|
const GPUObject& info) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <core/PS4/HLE/Graphics/graphics_ctx.h>
|
#include <core/PS4/HLE/Graphics/graphics_ctx.h>
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "tile_manager.h"
|
#include "tile_manager.h"
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
namespace GPU {
|
namespace GPU {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace GPU {
|
namespace GPU {
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "video_out_buffer.h"
|
#include "video_out_buffer.h"
|
||||||
|
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
#include <vulkan_util.h>
|
#include <vulkan_util.h>
|
||||||
#include "tile_manager.h"
|
#include "tile_manager.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
#include "gpu_memory.h"
|
#include "gpu_memory.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "video_out_ctx.h"
|
#include "video_out_ctx.h"
|
||||||
|
|
||||||
#include <core/PS4/HLE/LibKernel.h>
|
#include <core/PS4/HLE/LibKernel.h>
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <core/hle/libraries/libkernel/time_management.h>
|
#include <core/hle/libraries/libkernel/time_management.h>
|
||||||
|
|
||||||
namespace HLE::Graphics::Objects {
|
namespace HLE::Graphics::Objects {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "graphics_render.h"
|
#include "graphics_render.h"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "emulator.h"
|
#include "emulator.h"
|
||||||
|
|
||||||
static thread_local GPU::CommandPool g_command_pool;
|
static thread_local GPU::CommandPool g_command_pool;
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
#include <core/PS4/HLE/UserManagement/UsrMngCodes.h>
|
#include <core/PS4/HLE/UserManagement/UsrMngCodes.h>
|
||||||
#include <Util/config.h>
|
#include <Util/config.h>
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Objects/video_out_ctx.h"
|
#include "Objects/video_out_ctx.h"
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "emulator.h"
|
#include "emulator.h"
|
||||||
#include "graphics_render.h"
|
#include "graphics_render.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <core/PS4/HLE/Kernel/event_queues.h>
|
#include <core/PS4/HLE/Kernel/event_queues.h>
|
||||||
#include <core/PS4/Loader/SymbolsResolver.h>
|
#include <core/PS4/Loader/SymbolsResolver.h>
|
||||||
#include <types.h>
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -111,4 +110,4 @@ s32 PS4_SYSV_ABI sceVideoOutGetFlipStatus(s32 handle, SceVideoOutFlipStatus* sta
|
||||||
s32 PS4_SYSV_ABI sceVideoOutGetResolutionStatus(s32 handle, SceVideoOutResolutionStatus* status);
|
s32 PS4_SYSV_ABI sceVideoOutGetResolutionStatus(s32 handle, SceVideoOutResolutionStatus* status);
|
||||||
s32 PS4_SYSV_ABI sceVideoOutOpen(SceUserServiceUserId userId, s32 busType, s32 index, const void* param);
|
s32 PS4_SYSV_ABI sceVideoOutOpen(SceUserServiceUserId userId, s32 busType, s32 index, const void* param);
|
||||||
s32 PS4_SYSV_ABI sceVideoOutClose(s32 handle);
|
s32 PS4_SYSV_ABI sceVideoOutClose(s32 handle);
|
||||||
} // namespace HLE::Libs::Graphics::VideoOut
|
} // namespace HLE::Libs::Graphics::VideoOut
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <Lib/Timer.h>
|
#include <Lib/Timer.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
namespace HLE::Kernel::Objects {
|
namespace HLE::Kernel::Objects {
|
||||||
EqueueInternal::~EqueueInternal() {}
|
EqueueInternal::~EqueueInternal() {}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -76,4 +76,4 @@ class EqueueInternal {
|
||||||
std::vector<EqueueEvent> m_events;
|
std::vector<EqueueEvent> m_events;
|
||||||
std::condition_variable m_cond;
|
std::condition_variable m_cond;
|
||||||
};
|
};
|
||||||
}; // namespace HLE::Kernel::Objects
|
}; // namespace HLE::Kernel::Objects
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <core/virtual_memory.h>
|
#include <core/virtual_memory.h>
|
||||||
#include <core/PS4/GPU/gpu_memory.h>
|
#include <core/PS4/GPU/gpu_memory.h>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "ThreadManagement.h"
|
#include "ThreadManagement.h"
|
||||||
|
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
|
|
||||||
#include "../ErrorCodes.h"
|
#include "../ErrorCodes.h"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include "../../../../types.h"
|
#include "common/types.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::ThreadManagement {
|
namespace HLE::Libs::LibKernel::ThreadManagement {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "cpu_management.h"
|
#include "cpu_management.h"
|
||||||
#include "Util/config.h"
|
#include "Util/config.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::CPUManagement {
|
namespace HLE::Libs::LibKernel::CPUManagement {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::CPUManagement {
|
namespace HLE::Libs::LibKernel::CPUManagement {
|
||||||
int PS4_SYSV_ABI sceKernelIsNeoMode();
|
int PS4_SYSV_ABI sceKernelIsNeoMode();
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#include <core/PS4/HLE/ErrorCodes.h>
|
#include <core/PS4/HLE/ErrorCodes.h>
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::EventQueues {
|
namespace HLE::Libs::LibKernel::EventQueues {
|
||||||
constexpr bool log_file_equeues = true; // disable it to disable logging
|
constexpr bool log_file_equeues = true; // disable it to disable logging
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
|
||||||
|
|
||||||
#include "Objects/event_queue.h"
|
#include "Objects/event_queue.h"
|
||||||
|
|
||||||
namespace HLE::Libs::LibKernel::EventQueues {
|
namespace HLE::Libs::LibKernel::EventQueues {
|
||||||
|
@ -11,4 +9,4 @@ using SceKernelEqueue = Kernel::Objects::EqueueInternal*;
|
||||||
int PS4_SYSV_ABI sceKernelCreateEqueue(SceKernelEqueue* eq, const char* name);
|
int PS4_SYSV_ABI sceKernelCreateEqueue(SceKernelEqueue* eq, const char* name);
|
||||||
int PS4_SYSV_ABI sceKernelWaitEqueue(SceKernelEqueue eq, HLE::Kernel::Objects::SceKernelEvent* ev, int num, int* out, SceKernelUseconds *timo);
|
int PS4_SYSV_ABI sceKernelWaitEqueue(SceKernelEqueue eq, HLE::Kernel::Objects::SceKernelEvent* ev, int num, int* out, SceKernelUseconds *timo);
|
||||||
|
|
||||||
}; // namespace HLE::Libs::LibKernel::EventQueues
|
}; // namespace HLE::Libs::LibKernel::EventQueues
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
#include <core/PS4/GPU/gpu_memory.h>
|
#include <core/PS4/GPU/gpu_memory.h>
|
||||||
#include <core/virtual_memory.h>
|
#include <core/virtual_memory.h>
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
|
|
||||||
#include <bit>
|
#include <bit>
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
|
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "../ErrorCodes.h"
|
#include "../ErrorCodes.h"
|
||||||
#include "../Libs.h"
|
#include "../Libs.h"
|
||||||
#include "Objects/physical_memory.h"
|
#include "Objects/physical_memory.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
// constants
|
// constants
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include "LibKernel.h"
|
#include "LibKernel.h"
|
||||||
|
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "../Loader/Elf.h"
|
#include "../Loader/Elf.h"
|
||||||
#include "Kernel/Objects/physical_memory.h"
|
#include "Kernel/Objects/physical_memory.h"
|
||||||
#include "Kernel/cpu_management.h"
|
#include "Kernel/cpu_management.h"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "LibSceGnmDriver.h"
|
#include "LibSceGnmDriver.h"
|
||||||
#include "Libs.h"
|
#include "Libs.h"
|
||||||
#include "../Loader/Elf.h"
|
#include "../Loader/Elf.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <core/PS4/GPU/gpu_memory.h>
|
#include <core/PS4/GPU/gpu_memory.h>
|
||||||
#include <emulator.h>
|
#include <emulator.h>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include "Linker.h"
|
#include "Linker.h"
|
||||||
#include "../virtual_memory.h"
|
#include "../virtual_memory.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <Zydis/Zydis.h>
|
#include <Zydis/Zydis.h>
|
||||||
#include <Util/string_util.h>
|
#include "common/string_util.h"
|
||||||
#include "Util/aerolib.h"
|
#include "Util/aerolib.h"
|
||||||
#include "Loader/SymbolsResolver.h"
|
#include "Loader/SymbolsResolver.h"
|
||||||
#include "HLE/Kernel/ThreadManagement.h"
|
#include "HLE/Kernel/ThreadManagement.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Elf.h"
|
#include "Elf.h"
|
||||||
|
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
|
|
||||||
constexpr bool log_file_loader = true; // disable it to disable logging
|
constexpr bool log_file_loader = true; // disable it to disable logging
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "../../../types.h"
|
#include "common/types.h"
|
||||||
#include "../../FsFile.h"
|
#include "common/fs_file.h"
|
||||||
|
|
||||||
struct self_header
|
struct self_header
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "../../../types.h"
|
#include "common/types.h"
|
||||||
#include "SymbolsResolver.h"
|
#include "SymbolsResolver.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
|
|
||||||
void SymbolsResolver::AddSymbol(const SymbolRes& s, u64 virtual_addr)
|
void SymbolsResolver::AddSymbol(const SymbolRes& s, u64 virtual_addr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "../../../types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
|
|
||||||
struct SymbolRecord
|
struct SymbolRecord
|
||||||
{
|
{
|
||||||
|
@ -37,4 +36,4 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<SymbolRecord> m_symbols;
|
std::vector<SymbolRecord> m_symbols;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "Util/aerolib.h"
|
#include "Util/aerolib.h"
|
||||||
|
|
||||||
#include "Util/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
// Helper to provide stub implementations for missing functions
|
// Helper to provide stub implementations for missing functions
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
u64 UnresolvedStub();
|
u64 UnresolvedStub();
|
||||||
u64 GetStub(const char *nid);
|
u64 GetStub(const char *nid);
|
|
@ -1,10 +1,10 @@
|
||||||
#include "aerolib.h"
|
#include "aerolib.h"
|
||||||
|
|
||||||
#include "types.h"
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "Util/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
namespace aerolib {
|
namespace aerolib {
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include "libc.h"
|
#include "libc.h"
|
||||||
|
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "Util/log.h"
|
#include "common/log.h"
|
||||||
#include "core/PS4/HLE/Libs.h"
|
#include "core/PS4/HLE/Libs.h"
|
||||||
#include "core/hle/libraries/libc/libc.h"
|
#include "core/hle/libraries/libc/libc.h"
|
||||||
#include "core/hle/libraries/libc/libc_cxa.h"
|
#include "core/hle/libraries/libc/libc_cxa.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include "core/PS4/Loader/SymbolsResolver.h"
|
#include "core/PS4/Loader/SymbolsResolver.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibC {
|
namespace Core::Libraries::LibC {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "libc_cxa.h"
|
#include "libc_cxa.h"
|
||||||
|
|
||||||
#include "Util/log.h"
|
#include "common/log.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
// adapted from https://opensource.apple.com/source/libcppabi/libcppabi-14/src/cxa_guard.cxx.auto.html
|
// adapted from https://opensource.apple.com/source/libcppabi/libcppabi-14/src/cxa_guard.cxx.auto.html
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define _TIMESPEC_DEFINED
|
#define _TIMESPEC_DEFINED
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibC {
|
namespace Core::Libraries::LibC {
|
||||||
int PS4_SYSV_ABI __cxa_guard_acquire(u64* guard_object);
|
int PS4_SYSV_ABI __cxa_guard_acquire(u64* guard_object);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibC {
|
namespace Core::Libraries::LibC {
|
||||||
float PS4_SYSV_ABI atan2f(float y, float x);
|
float PS4_SYSV_ABI atan2f(float y, float x);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "libc_stdio.h"
|
#include "libc_stdio.h"
|
||||||
|
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibC {
|
namespace Core::Libraries::LibC {
|
||||||
constexpr bool log_file_libc = true; // disable it to disable logging
|
constexpr bool log_file_libc = true; // disable it to disable logging
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
#include "printf.h"
|
#include "printf.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "libc_stdlib.h"
|
#include "libc_stdlib.h"
|
||||||
|
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include <xmmintrin.h>
|
#include <xmmintrin.h>
|
||||||
|
|
||||||
#define VA_ARGS \
|
#define VA_ARGS \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "file_system.h"
|
#include "file_system.h"
|
||||||
|
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibKernel {
|
namespace Core::Libraries::LibKernel {
|
||||||
constexpr bool log_file_fs = true; // disable it to disable logging
|
constexpr bool log_file_fs = true; // disable it to disable logging
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
#include "core/PS4/Loader/SymbolsResolver.h"
|
#include "core/PS4/Loader/SymbolsResolver.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibKernel {
|
namespace Core::Libraries::LibKernel {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "types.h"
|
#include "common/types.h"
|
||||||
#include "core/PS4/Loader/SymbolsResolver.h"
|
#include "core/PS4/Loader/SymbolsResolver.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibKernel {
|
namespace Core::Libraries::LibKernel {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
#include <core/PS4/HLE/ErrorCodes.h>
|
#include <core/PS4/HLE/ErrorCodes.h>
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
|
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "Emulator/Host/controller.h"
|
#include "Emulator/Host/controller.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibPad {
|
namespace Core::Libraries::LibPad {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
#include "core/PS4/Loader/SymbolsResolver.h"
|
#include "core/PS4/Loader/SymbolsResolver.h"
|
||||||
#include "core/hle/libraries/libuserservice/user_service.h"
|
#include "core/hle/libraries/libuserservice/user_service.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <core/PS4/HLE/ErrorCodes.h>
|
#include <core/PS4/HLE/ErrorCodes.h>
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include "system_service.h"
|
#include "system_service.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibSystemService {
|
namespace Core::Libraries::LibSystemService {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <core/PS4/HLE/ErrorCodes.h>
|
#include <core/PS4/HLE/ErrorCodes.h>
|
||||||
#include <core/PS4/HLE/Libs.h>
|
#include <core/PS4/HLE/Libs.h>
|
||||||
|
|
||||||
#include "Util/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
namespace Core::Libraries::LibUserService {
|
namespace Core::Libraries::LibUserService {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
#include "common/debug.h"
|
||||||
|
#include "common/log.h"
|
||||||
#include "virtual_memory.h"
|
#include "virtual_memory.h"
|
||||||
|
|
||||||
#include "core/PS4/Loader/Elf.h"
|
#include "core/PS4/Loader/Elf.h"
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
@ -19,10 +20,6 @@ enum PosixPageProtection {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "../Util/Log.h"
|
|
||||||
|
|
||||||
namespace VirtualMemory {
|
namespace VirtualMemory {
|
||||||
static u32 convertMemoryMode(MemoryMode mode) {
|
static u32 convertMemoryMode(MemoryMode mode) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <types.h>
|
#include "common/types.h"
|
||||||
|
|
||||||
constexpr u64 SYSTEM_RESERVED = 0x800000000u;
|
constexpr u64 SYSTEM_RESERVED = 0x800000000u;
|
||||||
constexpr u64 CODE_BASE_OFFSET = 0x100000000u;
|
constexpr u64 CODE_BASE_OFFSET = 0x100000000u;
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
|
||||||
|
#include "common/types.h"
|
||||||
|
|
||||||
namespace Emulator::emuTimer {
|
namespace Emulator::emuTimer {
|
||||||
void start();
|
void start();
|
||||||
double getTimeMsec();
|
double getTimeMsec();
|
||||||
u64 getTimeCounter();
|
u64 getTimeCounter();
|
||||||
u64 getTimeFrequency();
|
u64 getTimeFrequency();
|
||||||
} // namespace Emulator::emuTimer
|
} // namespace Emulator::emuTimer
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
#include "core/PS4/HLE/Graphics/video_out.h"
|
#include "core/PS4/HLE/Graphics/video_out.h"
|
||||||
#include "core/hle/libraries/libpad/pad.h"
|
#include "core/hle/libraries/libpad/pad.h"
|
||||||
#include "Emulator/Util/singleton.h"
|
#include "common/singleton.h"
|
||||||
#include "version.h"
|
#include "common/version.h"
|
||||||
|
|
||||||
namespace Emu {
|
namespace Emu {
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include "types.h"
|
#include "common/discord.h"
|
||||||
#include "Util/log.h"
|
#include "common/types.h"
|
||||||
|
#include "common/log.h"
|
||||||
|
#include "common/singleton.h"
|
||||||
#include <core/PS4/HLE/Graphics/video_out.h>
|
#include <core/PS4/HLE/Graphics/video_out.h>
|
||||||
#include <Util/config.h>
|
#include <Util/config.h>
|
||||||
#include <Zydis/Zydis.h>
|
#include <Zydis/Zydis.h>
|
||||||
|
@ -11,11 +13,8 @@
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include "core/PS4/HLE/Libs.h"
|
#include "core/PS4/HLE/Libs.h"
|
||||||
#include "core/PS4/Linker.h"
|
#include "core/PS4/Linker.h"
|
||||||
#include "Emulator/Util\singleton.h"
|
|
||||||
#include "discord.h"
|
|
||||||
#include "emuTimer.h"
|
#include "emuTimer.h"
|
||||||
|
|
||||||
// Main code
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
fmt::print("Usage: {} <elf or eboot.bin path>\n", argv[0]);
|
fmt::print("Usage: {} <elf or eboot.bin path>\n", argv[0]);
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <core/PS4/GPU/gpu_memory.h>
|
#include <core/PS4/GPU/gpu_memory.h>
|
||||||
#include <SDL_vulkan.h>
|
#include <SDL_vulkan.h>
|
||||||
#include <Emulator/Util/singleton.h>
|
#include "common/singleton.h"
|
||||||
#include <Util/log.h>
|
#include "common/log.h"
|
||||||
#include <debug.h>
|
#include "common/debug.h"
|
||||||
#include <vulkan/vk_enum_string_helper.h>
|
#include <vulkan/vk_enum_string_helper.h>
|
||||||
#include <vulkan/vulkan_core.h>
|
#include <vulkan/vulkan_core.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue