Replace g_kernel with Core::Global etc.

This commit is contained in:
Hamish Milne
2019-12-25 18:51:56 +00:00
committed by zhupengfei
parent e707685c2a
commit 3e752002c4
15 changed files with 43 additions and 17 deletions

View File

@ -10,12 +10,13 @@
#include "core/hle/kernel/server_session.h"
#include "core/hle/kernel/session.h"
#include "core/hle/kernel/thread.h"
#include "core/global.h"
SERIALIZE_EXPORT_IMPL(Kernel::ServerSession)
namespace Kernel {
ServerSession::ServerSession() : kernel(*g_kernel) {}
ServerSession::ServerSession() : kernel(Core::Global<KernelSystem>()) {}
ServerSession::~ServerSession() {
// This destructor will be called automatically when the last ServerSession handle is closed by
// the emulated application.