Browse Source
Merge pull request #1409 from JamePeng/Reorganize-NDM
Merge pull request #1409 from JamePeng/Reorganize-NDM
Reorganize the ndm service path for implement dummy functionnce_cpp
8 changed files with 124 additions and 26 deletions
-
1src/common/logging/backend.cpp
-
1src/common/logging/log.h
-
6src/core/CMakeLists.txt
-
47src/core/hle/service/ndm/ndm.cpp
-
52src/core/hle/service/ndm/ndm.h
-
23src/core/hle/service/ndm/ndm_u.cpp
-
15src/core/hle/service/ndm/ndm_u.h
-
5src/core/hle/service/service.cpp
@ -0,0 +1,47 @@ |
|||||
|
// Copyright 2016 Citra Emulator Project
|
||||
|
// Licensed under GPLv2 or any later version
|
||||
|
// Refer to the license.txt file included.
|
||||
|
|
||||
|
#include "common/common_types.h"
|
||||
|
#include "common/logging/log.h"
|
||||
|
#include "core/hle/service/service.h"
|
||||
|
#include "core/hle/service/ndm/ndm.h"
|
||||
|
#include "core/hle/service/ndm/ndm_u.h"
|
||||
|
|
||||
|
namespace Service { |
||||
|
namespace NDM { |
||||
|
|
||||
|
void SuspendDaemons(Service::Interface* self) { |
||||
|
u32* cmd_buff = Kernel::GetCommandBuffer(); |
||||
|
|
||||
|
LOG_WARNING(Service_NDM, "(STUBBED) bit_mask=0x%08X ", cmd_buff[1]); |
||||
|
|
||||
|
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||
|
} |
||||
|
|
||||
|
void ResumeDaemons(Service::Interface* self) { |
||||
|
u32* cmd_buff = Kernel::GetCommandBuffer(); |
||||
|
|
||||
|
LOG_WARNING(Service_NDM, "(STUBBED) bit_mask=0x%08X ", cmd_buff[1]); |
||||
|
|
||||
|
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||
|
} |
||||
|
|
||||
|
void OverrideDefaultDaemons(Service::Interface* self) { |
||||
|
u32* cmd_buff = Kernel::GetCommandBuffer(); |
||||
|
|
||||
|
LOG_WARNING(Service_NDM, "(STUBBED) bit_mask=0x%08X ", cmd_buff[1]); |
||||
|
|
||||
|
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||
|
} |
||||
|
|
||||
|
void Init() { |
||||
|
AddService(new NDM_U_Interface); |
||||
|
} |
||||
|
|
||||
|
void Shutdown() { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
}// namespace NDM
|
||||
|
}// namespace Service
|
||||
@ -0,0 +1,52 @@ |
|||||
|
// Copyright 2016 Citra Emulator Project |
||||
|
// Licensed under GPLv2 or any later version |
||||
|
// Refer to the license.txt file included. |
||||
|
|
||||
|
#pragma once |
||||
|
|
||||
|
#include "common/common_types.h" |
||||
|
|
||||
|
namespace Service { |
||||
|
|
||||
|
class Interface; |
||||
|
|
||||
|
namespace NDM { |
||||
|
|
||||
|
/** |
||||
|
* SuspendDaemons |
||||
|
* Inputs: |
||||
|
* 0 : Command header (0x00020082) |
||||
|
* 1 : Daemon bit mask |
||||
|
* Outputs: |
||||
|
* 1 : Result, 0 on success, otherwise error code |
||||
|
*/ |
||||
|
void SuspendDaemons(Service::Interface* self); |
||||
|
|
||||
|
/** |
||||
|
* ResumeDaemons |
||||
|
* Inputs: |
||||
|
* 0 : Command header (0x00020082) |
||||
|
* 1 : Daemon bit mask |
||||
|
* Outputs: |
||||
|
* 1 : Result, 0 on success, otherwise error code |
||||
|
*/ |
||||
|
void ResumeDaemons(Service::Interface* self); |
||||
|
|
||||
|
/** |
||||
|
* OverrideDefaultDaemons |
||||
|
* Inputs: |
||||
|
* 0 : Command header (0x00020082) |
||||
|
* 1 : Daemon bit mask |
||||
|
* Outputs: |
||||
|
* 1 : Result, 0 on success, otherwise error code |
||||
|
*/ |
||||
|
void OverrideDefaultDaemons(Service::Interface* self); |
||||
|
|
||||
|
/// Initialize NDM service |
||||
|
void Init(); |
||||
|
|
||||
|
/// Shutdown NDM service |
||||
|
void Shutdown(); |
||||
|
|
||||
|
}// namespace NDM |
||||
|
}// namespace Service |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue