Skip to content

Commit

Permalink
Added more flags to debugScreen for postions
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Jul 19, 2023
1 parent 2f1850f commit 3bc8435
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extras/menus/xMenu/include/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "graphics.h"

void debugScreen(const char* text);
void debugScreen(const char* text, uint16_t w, uint16_t h);
void debugFile(const char* text);

#endif
8 changes: 6 additions & 2 deletions extras/menus/xMenu/src/debug.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#include "debug.h"

void debugScreen(const char* text){
void debugScreen(const char* text, uint16_t w, uint16_t h){
clearScreen(CLEAR_COLOR);
printTextScreen(0, 0, text, WHITE_COLOR);
if((w && h) == NULL)
printTextScreen(0, 0, text, WHITE_COLOR);
else
//printTextScreen(180, 130, text, WHITE_COLOR);
printTextScreen(w, h, text, WHITE_COLOR);
flipScreen();
}

Expand Down
4 changes: 2 additions & 2 deletions extras/menus/xMenu/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void Menu::loadGame(){
param.args = strlen(path) + 1;
param.argp = path;
param.key = "pops";
debugScreen(path);
debugScreen(path, NULL, NULL);
sctrlKernelLoadExecVSHWithApitype(runlevel, path, &param);
}

Expand All @@ -333,7 +333,7 @@ void Menu::rebootMenu(){
param.args = strlen(path) + 1;
param.argp = path;
param.key = "game";
debugScreen(path);
debugScreen(path, NULL, NULL);
sctrlKernelLoadExecVSHWithApitype(runlevel, path, &param);
}

Expand Down

0 comments on commit 3bc8435

Please sign in to comment.