mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Clang and emulator fixes
This commit is contained in:
parent
d642033ae4
commit
86a10d6e4a
@ -335,9 +335,8 @@ void Emulator::Restart() {
|
||||
LOG_ERROR(Loader, "No previous EBOOT path found! Cannot restart.");
|
||||
return;
|
||||
}
|
||||
} // namespace Core
|
||||
|
||||
void Core::Emulator::LoadSystemModules(const std::string& game_serial) {
|
||||
}
|
||||
void Core::Emulator::LoadSystemModules(const std::string& game_serial) {
|
||||
constexpr std::array<SysModules, 11> ModulesToLoad{
|
||||
{{"libSceNgs2.sprx", &Libraries::Ngs2::RegisterlibSceNgs2},
|
||||
{"libSceUlt.sprx", nullptr},
|
||||
@ -380,10 +379,10 @@ void Core::Emulator::LoadSystemModules(const std::string& game_serial) {
|
||||
linker->LoadModule(entry.path());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_QT_GUI
|
||||
void Core::Emulator::UpdatePlayTime(const std::string& serial) const {
|
||||
void Core::Emulator::UpdatePlayTime(const std::string& serial) const {
|
||||
const auto user_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
|
||||
QString filePath = QString::fromStdString((user_dir / "play_time.txt").string());
|
||||
|
||||
@ -449,6 +448,7 @@ void Core::Emulator::UpdatePlayTime(const std::string& serial) const {
|
||||
}
|
||||
}
|
||||
LOG_INFO(Loader, "Playing time for {}: {}", serial, playTimeSaved.toStdString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
} // namespace Core
|
@ -1,20 +1,12 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#ifdef ENABLE_QT_GUI
|
||||
#include <QCoreApplication>
|
||||
#include <QFileInfo>
|
||||
#include <QProcess>
|
||||
#include <QStandardPaths>
|
||||
#include <QString>
|
||||
#include <QThread>
|
||||
#include "common/memory_patcher.h"
|
||||
#endif
|
||||
#include <chrono>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <sys/stat.h>
|
||||
#include "SDL3/SDL_events.h"
|
||||
#include "SDL3/SDL_hints.h"
|
||||
#include "SDL3/SDL_init.h"
|
||||
|
Loading…
Reference in New Issue
Block a user