From d4d68e17bccfc9f2d4bb239cf83e5193a6415ac0 Mon Sep 17 00:00:00 2001 From: Jpe230 Date: Fri, 22 Jun 2018 11:42:39 -0500 Subject: [PATCH] Screenshots when selecting slot --- Makefile | 2 +- include/MainMenu.h | 1 + include/botw_backend.h | 1 - include/main.h | 5 ++++- include/mount.h | 2 +- romfs/missingSlot.png | Bin 0 -> 3061 bytes 6 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 romfs/missingSlot.png diff --git a/Makefile b/Makefile index e5c1355..5514991 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ ROMFS := romfs APP_TITLE := BOTW UI APP_AUTHOR := Jpe230 -APP_VERSION := 0.2 +APP_VERSION := 0.3 ICON := meta/icon.jpg #--------------------------------------------------------------------------------- diff --git a/include/MainMenu.h b/include/MainMenu.h index f998f2e..25b6175 100644 --- a/include/MainMenu.h +++ b/include/MainMenu.h @@ -12,6 +12,7 @@ SDL_Surface* screenSurface; SDL_Renderer* renderer; TTF_Font *Arial, *Arial_S, *Arial_M; SDL_Texture *sprites[200]; +SDL_Texture *saveFileImg[6]; SDL_Texture *GreenRupee; SDL_Texture *back; SDL_Texture *bbutton; diff --git a/include/botw_backend.h b/include/botw_backend.h index 93105e9..4cd89d1 100644 --- a/include/botw_backend.h +++ b/include/botw_backend.h @@ -4,7 +4,6 @@ #include #include #include -#include "mount.h" diff --git a/include/main.h b/include/main.h index fbe7588..e9f8188 100644 --- a/include/main.h +++ b/include/main.h @@ -2,8 +2,11 @@ #define _main_h_ #include +#include +#include #include "MainMenu.h" #include "botw_backend.h" +#include "mount.h" int buttons; int currentPage; @@ -30,7 +33,6 @@ void MenuButtons(int x); void MenuButtonsSlot(int x); void ConfirmButton(); void setPages(); -void returnMainScreen(); void KeyboardButtons(int x); void BackButton(); void ItemMenu(int x); @@ -39,6 +41,7 @@ void comboBox(int x); void dropMenuButtons(int x); void KeyboardLogic(); void exitMen(); +int file_exist (char *filename); diff --git a/include/mount.h b/include/mount.h index 1e6d87b..52dc773 100644 --- a/include/mount.h +++ b/include/mount.h @@ -3,7 +3,7 @@ void unmountSaveData(); -void mountSaveData(); +int mountSaveData(); #endif // TRANSLATIONS_H_ \ No newline at end of file diff --git a/romfs/missingSlot.png b/romfs/missingSlot.png new file mode 100644 index 0000000000000000000000000000000000000000..07ba0ff724ce0d83d10a23d3b91bb6aafb3e412e GIT binary patch literal 3061 zcmcguPiP!f7=J5m+O*b&dZBY9RMJ(z;=%tl{c<|sMh#(YEXzTap&+euqrnKM=GxO$q zzwht+y>H(KQOe;a11%gGRHxN+L%ma^W4k(xiI}CS7!sW*(j&wnHCLUY zN?w2|Ij=A#F9}pZ%kv7S3DPT+!0`o^E3mxCaJ-glJeMLCjRmhA6={ex zNulLet6jrxm=+33#&!&!|=Hshh94{@z^4Eqy0Vg zY23@=A=ClhRkqBoW4|3VDj$;=ukFlPNAvhou5um*bBGutGSN;zYd<(ZD9cZ1a}OR+RlDKL^Esf=Vw zHnX5e8l%b*Cn=iEsT$6#RopN#ToV&(U_bAGCA(mAre(>@f}|LXtx5u;DyGV4qQS|6 ziB*FuWcsfL4r~mg*&o%YI;O~Cd8|+v8&$^@l^YQ`ZM;wrN}{T2Jm^}cZhJw?0FF2< zqmEhMtfiwY5mRui$$1xm)u}@AAGI^Zw3^W_aOp#?#PVsRNb7cosJkg1Bj7`N;^Lq0>n_%%?d zm1RW6W?<3)W2R0xVdMqNX^Wb{Z>OWCL&Xh3H_W7(p|OZ9Iu$zWFjA5Q%__(W;i1e} zA~4dBM3XTstZ}@piM(iM`b!N=mNQO!-CPpip=U=+Mu11^u$Qtn9P@+p1FBS_UYd1W z%UcRx&Mcb^!>waz{w&RIl#1!Oi#UjS>G(!q0OMfEi?khhEh-`WTRyH+k(YiE`fq5` z!hzFQpMHZ~Z`7li-n8%!*9ww~{%?h6$^TPAC-y<6CEw+wWaFgXVFdpU`s1*Q=tGa~ zcHPbUTjJAul-@{a&})P>+=-4F%fOzLaHB@ON4*{{#!Ld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