Add screenshot taking as debug arg

This commit is contained in:
suchmememanyskill
2021-01-09 17:12:45 +01:00
parent 981e5435ea
commit 5485f5ca06
3 changed files with 90 additions and 1 deletions

View File

@@ -5,6 +5,8 @@
#include <utils/types.h>
#include <utils/util.h>
#include "../utils/utils.h"
#include "../tegraexplorer/tools.h"
#include <gfx/di.h>
static Input_t inputs = {0};
u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0;
@@ -22,6 +24,11 @@ Input_t *hidRead(){
if (controller->home)
RebootToPayloadOrRcm();
#ifdef TAKESCREENSHOT
if (controller->cap)
TakeScreenshot();
#endif
inputs.buttons = controller->buttons;
u8 btn = btn_read();