mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 17:34:52 +00:00
added library to print system info to be able to debug user files better
This commit is contained in:
parent
fd39c50910
commit
a91c049754
6 changed files with 26 additions and 1 deletions
|
@ -15,12 +15,14 @@
|
|||
#include "common/logging/backend.h"
|
||||
#include "common/path_util.h"
|
||||
#include "common/singleton.h"
|
||||
#include "common/version.h"
|
||||
#include "core/file_sys/fs.h"
|
||||
#include "core/libraries/kernel/thread_management.h"
|
||||
#include "core/libraries/libs.h"
|
||||
#include "core/linker.h"
|
||||
#include "core/memory.h"
|
||||
#include "emulator.h"
|
||||
#include "hwinfo/hwinfo.h"
|
||||
|
||||
Frontend::WindowSDL* g_window = nullptr;
|
||||
|
||||
|
@ -40,6 +42,8 @@ Emulator::Emulator()
|
|||
// Start logger.
|
||||
Common::Log::Initialize();
|
||||
Common::Log::Start();
|
||||
LOG_INFO(Loader, "Starting shadps4 emulator v{} ", Common::VERSION);
|
||||
PrintSystemInfo();
|
||||
}
|
||||
|
||||
Emulator::~Emulator() {
|
||||
|
@ -177,4 +181,17 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file) {
|
|||
}
|
||||
}
|
||||
|
||||
void Emulator::PrintSystemInfo() {
|
||||
auto cpus = hwinfo::getAllCPUs();
|
||||
for (const auto& cpu : cpus) {
|
||||
LOG_INFO(Loader, "CPU #{} {}", cpu.id(), cpu.modelName());
|
||||
}
|
||||
hwinfo::OS os;
|
||||
LOG_INFO(Loader, "{}", os.name());
|
||||
auto gpus = hwinfo::getAllGPUs();
|
||||
for (auto& gpu : gpus) {
|
||||
LOG_INFO(Loader, "GPU #{} {}", gpu.id(), gpu.name());
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue