/*
* Copyright (c) 2018 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include "dmnt_cheat_service.hpp"
#include "dmnt_cheat_manager.hpp"
void DmntCheatService::HasCheatProcess(Out out) {
out.SetValue(DmntCheatManager::GetHasActiveCheatProcess());
}
void DmntCheatService::GetCheatProcessEvent(Out out_event) {
out_event.SetValue(DmntCheatManager::GetCheatProcessEventHandle());
}
Result DmntCheatService::GetCheatProcessMetadata(Out out_metadata) {
return DmntCheatManager::GetCheatProcessMetadata(out_metadata.GetPointer());
}
Result DmntCheatService::GetCheatProcessMappingCount(Out out_count) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetCheatProcessMappings(OutBuffer mappings, Out out_count, u64 offset) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::ReadCheatProcessMemory(OutBuffer buffer, u64 address, u64 out_size) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::WriteCheatProcessMemory(InBuffer buffer, u64 address, u64 in_size) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetCheatCount(Out out_count) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetCheats(OutBuffer cheats, Out out_count, u64 offset) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetCheatById(OutBuffer cheat, u32 cheat_id) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::ToggleCheat(u32 cheat_id) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::AddCheat(InBuffer cheat) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::RemoveCheat(u32 cheat_id) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetFrozenAddressCount(Out out_count) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::GetFrozenAddresses(OutBuffer addresses, Out out_count, u64 offset) {
/* TODO */
return 0xF601;
}
Result DmntCheatService::ToggleAddressFrozen(uintptr_t address) {
/* TODO */
return 0xF601;
}