mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-24 19:14:40 +00:00
clang format
This commit is contained in:
parent
b40fd50d64
commit
c33fb1dd56
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#include <Zydis/Zydis.h>
|
#include <Zydis/Zydis.h>
|
||||||
#include "common/config.h"
|
#include "common/config.h"
|
||||||
#include "common/path_util.h"
|
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
|
#include "common/path_util.h"
|
||||||
#include "common/string_util.h"
|
#include "common/string_util.h"
|
||||||
#include "core/aerolib/aerolib.h"
|
#include "core/aerolib/aerolib.h"
|
||||||
#include "core/aerolib/stubs.h"
|
#include "core/aerolib/stubs.h"
|
||||||
@ -667,6 +667,7 @@ void Linker::DebugDump() {
|
|||||||
const std::filesystem::path debug(log_dir / "debugdump");
|
const std::filesystem::path debug(log_dir / "debugdump");
|
||||||
std::filesystem::create_directory(debug);
|
std::filesystem::create_directory(debug);
|
||||||
for (const auto& m : m_modules) {
|
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);
|
const std::filesystem::path filepath(debug / m.get()->file_name);
|
||||||
std::filesystem::create_directory(filepath);
|
std::filesystem::create_directory(filepath);
|
||||||
m.get()->import_sym.DebugDump(filepath / "imports.txt");
|
m.get()->import_sym.DebugDump(filepath / "imports.txt");
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "common/string_util.h"
|
|
||||||
#include "common/io_file.h"
|
#include "common/io_file.h"
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
|
#include "common/string_util.h"
|
||||||
#include "common/types.h"
|
#include "common/types.h"
|
||||||
#include "core/aerolib/aerolib.h"
|
#include "core/aerolib/aerolib.h"
|
||||||
#include "core/loader/symbols_resolver.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) {
|
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) {
|
for (const auto& symbol : m_symbols) {
|
||||||
const auto ids = Common::SplitString(symbol.name, '#');
|
const auto ids = Common::SplitString(symbol.name, '#');
|
||||||
std::string nidName = "";
|
std::string nidName = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user