-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
282 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
#include <switch.h> | ||
#include "dmntcht.h" | ||
|
||
extern Handle debughandle; | ||
bool bControllerIsInitialised; | ||
u64 controllerHandle; | ||
HiddbgHdlsDeviceInfo controllerDevice; | ||
HiddbgHdlsState controllerState; | ||
extern u64 buttonClickSleepTime; | ||
|
||
extern DmntCheatProcessMetadata metaData; | ||
|
||
void attach(); | ||
|
||
void poke(u64 offset, u64 size, u8* val); | ||
u8* peek(u64 offset, u64 size); | ||
void click(HidControllerKeys btn); | ||
void press(HidControllerKeys btn); | ||
void release(HidControllerKeys btn); | ||
void setStickState(int side, int dxVal, int dyVal); | ||
#include <switch.h> | ||
|
||
extern Handle debughandle; | ||
bool bControllerIsInitialised; | ||
u64 controllerHandle; | ||
HiddbgHdlsDeviceInfo controllerDevice; | ||
HiddbgHdlsState controllerState; | ||
extern u64 buttonClickSleepTime; | ||
|
||
typedef struct { | ||
u64 main_nso_base; | ||
u64 heap_base; | ||
u64 titleID; | ||
u8 buildID[0x20]; | ||
} MetaData; | ||
|
||
void attach(); | ||
void detach(); | ||
u64 getMainNsoBase(u64 pid); | ||
u64 getHeapBase(Handle handle); | ||
u64 getTitleId(u64 pid); | ||
void getBuildID(MetaData* meta, u64 pid); | ||
MetaData getMetaData(void); | ||
|
||
void poke(u64 offset, u64 size, u8* val); | ||
void peek(u8* outData, u64 offset, u64 size); | ||
void click(HidControllerKeys btn); | ||
void press(HidControllerKeys btn); | ||
void release(HidControllerKeys btn); | ||
void setStickState(int side, int dxVal, int dyVal); |
Oops, something went wrong.