hiddbg: Adds a function to return tmem directly

This commit is contained in:
cathery 2019-11-06 18:43:12 +03:00
parent 5a7f14409e
commit 3204e5581f
2 changed files with 8 additions and 0 deletions

View File

@ -182,6 +182,9 @@ Result hiddbgAttachHdlsWorkBuffer(void);
/// Exit Hdls, must be called at some point prior to hiddbgExit. Only available with [7.0.0+]. /// Exit Hdls, must be called at some point prior to hiddbgExit. Only available with [7.0.0+].
Result hiddbgReleaseHdlsWorkBuffer(void); Result hiddbgReleaseHdlsWorkBuffer(void);
/// Gets the Tmem pointer. Use only after calling hiddbgAttachHdlsWorkBuffer()
TransferMemory *hiddbgGetWorkBufferTransferMemoryAddress();
/// Gets state for \ref HiddbgHdlsNpadAssignment. Only available with [7.0.0+]. /// Gets state for \ref HiddbgHdlsNpadAssignment. Only available with [7.0.0+].
Result hiddbgDumpHdlsNpadAssignmentState(HiddbgHdlsNpadAssignment *state); Result hiddbgDumpHdlsNpadAssignmentState(HiddbgHdlsNpadAssignment *state);

View File

@ -392,6 +392,11 @@ Result hiddbgReleaseHdlsWorkBuffer(void) {
return rc; return rc;
} }
TransferMemory *hiddbgGetWorkBufferTransferMemoryAddress()
{
return &g_hiddbgHdlsTmem;
}
Result hiddbgDumpHdlsNpadAssignmentState(HiddbgHdlsNpadAssignment *state) { Result hiddbgDumpHdlsNpadAssignmentState(HiddbgHdlsNpadAssignment *state) {
Result rc=0; Result rc=0;