mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
97 lines
1.9 KiB
C
97 lines
1.9 KiB
C
#ifndef SCREEN_H_
|
|
#define SCREEN_H_
|
|
|
|
#include <string.h>
|
|
#include <nn/types.h>
|
|
#include "../../../../common/gui/gui.h"
|
|
|
|
//パネルのID
|
|
enum {
|
|
EVNT_NONE,
|
|
EVNT_YES,
|
|
EVNT_NO,
|
|
EVNT_QUIT,
|
|
EVNT_PUSH_A,
|
|
EVNT_PUSH_B,
|
|
EVNT_PUSH_R,
|
|
EVNT_PUSH_L,
|
|
EVNT_PUSH_X,
|
|
EVNT_PUSH_Y,
|
|
EVNT_PUSH_LEFT_X,
|
|
EVNT_PUSH_DOWN_Y,
|
|
EVNT_SEL_READ,
|
|
EVNT_SEL_WRITE,
|
|
EVNT_SEL_END,
|
|
EVNT_ERROR,
|
|
EVNT_FATAL,
|
|
EVNT_INEX //挿抜判定はメイン側でセットする
|
|
};
|
|
|
|
typedef struct{
|
|
tChar *str;
|
|
eColor color;
|
|
u8 pad[3];
|
|
}tColStr;
|
|
|
|
|
|
//Topメニューでのエラー&状態表示フラグ
|
|
enum{
|
|
SCR_ERRPUT_NONE,
|
|
SCR_ERRPUT_PCODE,
|
|
SCR_ERRPUT_MEDIA,
|
|
SCR_ERRPUT_EXEC,
|
|
SCR_ERRPUT_CARD,
|
|
SCR_ERRPUT_CARD2
|
|
};
|
|
|
|
//デバグモードの表示
|
|
//#define SDATA_ERRPUT_DEBUG (1>>3)
|
|
|
|
//Initialize用フラグ
|
|
//日本語、コピーモード、強制SD、SDなし、デバグ
|
|
#define SCR_FLG_JP 1
|
|
#define SCR_FLG_CP 2
|
|
#define SCR_FLG_FSD 4
|
|
#define SCR_FLG_NOSD 8
|
|
#define SCR_FLG_DBG 0x80
|
|
|
|
//メニュー表示
|
|
enum{
|
|
SCR_MENU_NONE,
|
|
SCR_MENU_READ,
|
|
SCR_MENU_WRITE
|
|
};
|
|
|
|
|
|
bool ScrInitialize(uptr heap,u32 size,u8 flag);
|
|
void ScrFinalize();
|
|
void ScrClr();
|
|
int ScrDbgLogGetMax();
|
|
void ScrStep();
|
|
void scr_TopMenuDbg(bool formatted,bool insertted);
|
|
void scr_TopMenu(int mode,int err);
|
|
void scr_ErrorQuitDbg(tColStr **s);
|
|
void scr_SuccessQuitDbg(tColStr **s);
|
|
void scr_ConfirmDbg(char *str);
|
|
void scr_BackupYesNo();
|
|
void scr_Backup();
|
|
void scr_RestoreYesNo();
|
|
void scr_Restore();
|
|
void scr_InsEjectQuit();
|
|
void scr_InsEjectSD();
|
|
void scr_Status(tChar *s,eColor col);
|
|
void scr_ResultQuit(tChar *s,eColor col);
|
|
void scr_CountPerMax(int ct,int max);
|
|
void scr_Gage(int ct,int max);
|
|
void scr_Total(int total);
|
|
void scr_PrdCode(char *s);
|
|
void scr_PrdCodeEx(char *s);
|
|
void scr_DelConf();
|
|
void scr_MessOnCount2(tChar *str);
|
|
void scr_Draw();
|
|
void scr_GetEvnt();
|
|
void scr_Vsnc();
|
|
|
|
#endif
|
|
|