diff --git a/src/core/linker.cpp b/src/core/linker.cpp index 0ba6c45d3..58baf966e 100644 --- a/src/core/linker.cpp +++ b/src/core/linker.cpp @@ -3,8 +3,8 @@ #include #include "common/config.h" -#include "common/path_util.h" #include "common/logging/log.h" +#include "common/path_util.h" #include "common/string_util.h" #include "core/aerolib/aerolib.h" #include "core/aerolib/stubs.h" @@ -667,6 +667,7 @@ void Linker::DebugDump() { const std::filesystem::path debug(log_dir / "debugdump"); std::filesystem::create_directory(debug); for (const auto& m : m_modules) { + // TODO make a folder with game id for being more unique? const std::filesystem::path filepath(debug / m.get()->file_name); std::filesystem::create_directory(filepath); m.get()->import_sym.DebugDump(filepath / "imports.txt"); diff --git a/src/core/loader/symbols_resolver.cpp b/src/core/loader/symbols_resolver.cpp index 132b0c919..085e061c2 100644 --- a/src/core/loader/symbols_resolver.cpp +++ b/src/core/loader/symbols_resolver.cpp @@ -1,9 +1,9 @@ // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#include "common/string_util.h" #include "common/io_file.h" #include "common/logging/log.h" +#include "common/string_util.h" #include "common/types.h" #include "core/aerolib/aerolib.h" #include "core/loader/symbols_resolver.h" @@ -35,7 +35,8 @@ const SymbolRecord* SymbolsResolver::FindSymbol(const SymbolResolver& s) const { } void SymbolsResolver::DebugDump(const std::filesystem::path& file_name) { - Common::FS::IOFile f{file_name, Common::FS::FileAccessMode::Write, Common::FS::FileType::TextFile}; + Common::FS::IOFile f{file_name, Common::FS::FileAccessMode::Write, + Common::FS::FileType::TextFile}; for (const auto& symbol : m_symbols) { const auto ids = Common::SplitString(symbol.name, '#'); std::string nidName = "";