diff --git a/src/Core/PS4/Loader/Elf.cpp b/src/Core/PS4/Loader/Elf.cpp index d7a3d925..bba4d62b 100644 --- a/src/Core/PS4/Loader/Elf.cpp +++ b/src/Core/PS4/Loader/Elf.cpp @@ -6,13 +6,7 @@ #include #include #include - -#ifdef _WIN64 - #define DBG_BREAKPOINT __debugbreak(); -#else - #include - #define DBG_BREAKPOINT raise(SIGTRAP); -#endif +#include constexpr bool debug_elf = true; @@ -157,7 +151,7 @@ void Elf::Open(const std::string& file_name) } } - //DebugDump(); + DebugDump(); } bool Elf::isSelfFile() const @@ -275,14 +269,6 @@ bool Elf::isElfFile() const } void Elf::DebugDump() { - std::vector sinks; - sinks.push_back(std::make_shared()); - #ifdef _WIN64 - sinks.push_back(std::make_shared(L"output.log", true)); //this might work only in windows ;/ - #endif - spdlog::set_default_logger(std::make_shared("shadps4 logger", begin(sinks), end(sinks))); - auto f = std::make_unique("%v", spdlog::pattern_time_type::local, std::string("")); // disable eol - spdlog::set_formatter(std::move(f)); if (m_self != nullptr) {//if we load elf instead spdlog::info(SElfHeaderStr()); spdlog::info("\n"); @@ -546,7 +532,7 @@ void Elf::LoadSegment(u64 virtual_addr, u64 file_offset, u64 size) } } } - DBG_BREAKPOINT //hmm we didn't return something... + BREAKPOINT(); // hmm we didn't return something... } else {