Services: Initialize all state variables at bootup.

This commit is contained in:
bunnei
2015-04-27 22:01:48 -04:00
parent bbabed8e98
commit e0cb85691a
8 changed files with 38 additions and 22 deletions

View File

@ -15,8 +15,8 @@
namespace Service {
namespace IR {
static Kernel::SharedPtr<Kernel::Event> handle_event = nullptr;
static Kernel::SharedPtr<Kernel::SharedMemory> shared_memory = nullptr;
static Kernel::SharedPtr<Kernel::Event> handle_event;
static Kernel::SharedPtr<Kernel::SharedMemory> shared_memory;
void GetHandles(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
@ -41,6 +41,8 @@ void Init() {
}
void Shutdown() {
shared_memory = nullptr;
handle_event = nullptr;
}
} // namespace IR