mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-04 16:16:20 +00:00
added sceMutexInit functions
This commit is contained in:
parent
86bc2d427f
commit
91885e8a41
4 changed files with 181 additions and 30 deletions
24
src/main.cpp
24
src/main.cpp
|
@ -1,19 +1,22 @@
|
|||
#include <cstdio>
|
||||
#include <cinttypes>
|
||||
#include <thread>
|
||||
#include <fmt/core.h>
|
||||
#include <SDL3/SDL.h>
|
||||
#include <Zydis/Zydis.h>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstdio>
|
||||
#include <thread>
|
||||
|
||||
#include "Util/config.h"
|
||||
#include "common/discord.h"
|
||||
#include "common/types.h"
|
||||
#include "common/log.h"
|
||||
#include "common/singleton.h"
|
||||
#include "common/types.h"
|
||||
#include "core/PS4/HLE/Graphics/video_out.h"
|
||||
#include "Util/config.h"
|
||||
#include "emulator.h"
|
||||
#include "core/hle/libraries/libs.h"
|
||||
#include "core/linker.h"
|
||||
#include "emuTimer.h"
|
||||
#include "emulator.h"
|
||||
#include <core/hle/libraries/libkernel/thread_management.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
if (argc == 1) {
|
||||
|
@ -22,6 +25,7 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
Config::load("config.toml");
|
||||
Common::Log::Init(true);
|
||||
Core::Libraries::LibKernel::init_pthreads();
|
||||
auto width = Config::getScreenWidth();
|
||||
auto height = Config::getScreenHeight();
|
||||
Emu::emuInit(width, height);
|
||||
|
@ -34,11 +38,7 @@ int main(int argc, char* argv[]) {
|
|||
auto linker = Common::Singleton<Core::Linker>::Instance();
|
||||
Core::Libraries::InitHLELibs(&linker->getHLESymbols());
|
||||
linker->LoadModule(path);
|
||||
std::jthread mainthread(
|
||||
[linker](std::stop_token stop_token, void*) {
|
||||
linker->Execute();
|
||||
},
|
||||
nullptr);
|
||||
std::jthread mainthread([linker](std::stop_token stop_token, void*) { linker->Execute(); }, nullptr);
|
||||
Discord::RPC discordRPC;
|
||||
discordRPC.init();
|
||||
discordRPC.update(Discord::RPCStatus::Idling, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue