common: Move classes to common namespace

This commit is contained in:
GPUCode 2023-11-05 16:56:28 +02:00
parent 996aa9d17a
commit 303f086b14
21 changed files with 190 additions and 199 deletions

View file

@ -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);