mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
core: Fixup linux support (#195)
* tls: Implement for linux * core: Implement memory manager for linux
This commit is contained in:
@@ -40,10 +40,6 @@ Emulator::Emulator() : window{WindowWidth, WindowHeight, controller} {
|
||||
Common::Log::Initialize();
|
||||
Common::Log::Start();
|
||||
|
||||
// Start discord integration
|
||||
discord_rpc.init();
|
||||
discord_rpc.update(Discord::RPCStatus::Idling, "");
|
||||
|
||||
// Initialize kernel and library facilities.
|
||||
Libraries::Kernel::init_pthreads();
|
||||
Libraries::InitHLELibs(&linker->GetHLESymbols());
|
||||
@@ -52,7 +48,6 @@ Emulator::Emulator() : window{WindowWidth, WindowHeight, controller} {
|
||||
Emulator::~Emulator() {
|
||||
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
|
||||
Config::save(config_dir / "config.toml");
|
||||
discord_rpc.stop();
|
||||
}
|
||||
|
||||
void Emulator::Run(const std::filesystem::path& file) {
|
||||
@@ -116,7 +111,7 @@ void Emulator::Run(const std::filesystem::path& file) {
|
||||
std::jthread([this](std::stop_token stop_token) { linker->Execute(); });
|
||||
|
||||
// Begin main window loop until the application exits
|
||||
static constexpr std::chrono::microseconds FlipPeriod{100000};
|
||||
static constexpr std::chrono::microseconds FlipPeriod{10};
|
||||
|
||||
while (window.isOpen()) {
|
||||
window.waitEvent();
|
||||
@@ -138,4 +133,4 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
} // namespace Core
|
||||
|
||||
Reference in New Issue
Block a user