singleton: Use unique_ptr

This commit is contained in:
GPUCode 2023-10-26 23:13:07 +03:00
parent 7cbe7c762a
commit f3504b2d25
3 changed files with 8 additions and 13 deletions

View file

@ -54,7 +54,7 @@ int main(int argc, char* argv[]) {
const char* const path = argv[1]; // argument 1 is the path of self file to boot
auto* linker = singleton<Linker>::instance();
HLE::Libs::Init_HLE_Libs(linker->getHLESymbols());
HLE::Libs::Init_HLE_Libs(&linker->getHLESymbols());
auto* module = linker->LoadModule(path); // load main executable
std::jthread mainthread(
[](std::stop_token stop_token, void*) {