mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 01:14:56 +00:00
common: Move classes to common namespace
This commit is contained in:
parent
996aa9d17a
commit
303f086b14
21 changed files with 190 additions and 199 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -21,21 +21,21 @@ int main(int argc, char* argv[]) {
|
|||
return -1;
|
||||
}
|
||||
Config::load("config.toml");
|
||||
logging::init(true); // init logging
|
||||
Common::Log::Init(true);
|
||||
auto width = Config::getScreenWidth();
|
||||
auto height = Config::getScreenHeight();
|
||||
Emu::emuInit(width, height);
|
||||
HLE::Libs::Graphics::VideoOut::videoOutInit(width, height);
|
||||
Emulator::emuTimer::start();
|
||||
|
||||
const char* const path = argv[1]; // argument 1 is the path of self file to boot
|
||||
// Argument 1 is the path of self file to boot
|
||||
const char* const path = argv[1];
|
||||
|
||||
auto linker = singleton<Linker>::instance();
|
||||
auto linker = Common::Singleton<Linker>::Instance();
|
||||
HLE::Libs::Init_HLE_Libs(&linker->getHLESymbols());
|
||||
linker->LoadModule(path); // Load main executable
|
||||
linker->LoadModule(path);
|
||||
std::jthread mainthread(
|
||||
[](std::stop_token stop_token, void*) {
|
||||
auto* linker = singleton<Linker>::instance();
|
||||
[linker](std::stop_token stop_token, void*) {
|
||||
linker->Execute();
|
||||
},
|
||||
nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue