mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
fix on loading elf file instead of self
This commit is contained in:
parent
5f0b15e2fa
commit
76987fb932
|
@ -273,6 +273,7 @@ void Elf::DebugDump() {
|
|||
spdlog::set_default_logger(std::make_shared<spdlog::logger>("shadps4 logger", begin(sinks), end(sinks)));
|
||||
auto f = std::make_unique<spdlog::pattern_formatter>("%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");
|
||||
for (u16 i = 0; i < m_self->segment_count; i++)
|
||||
|
@ -280,6 +281,7 @@ void Elf::DebugDump() {
|
|||
spdlog::info(SELFSegHeader(i));
|
||||
}
|
||||
spdlog::info("\n");
|
||||
}
|
||||
|
||||
spdlog::info(ElfHeaderStr());
|
||||
|
||||
|
|
Loading…
Reference in a new issue