mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
73 lines
1.6 KiB
C
73 lines
1.6 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メニューでのエラー表示用のフラグ
|
||
//bit位置のOR
|
||
#define SDATA_ERRPUT_PCODE (1 << 0)
|
||
#define SDATA_ERRPUT_MEDIA (1 << 1)
|
||
#define SDATA_ERRPUT_VERIFI (1 << 2)
|
||
//デバグモードの表示
|
||
//#define SDATA_ERRPUT_DEBUG (1>>3)
|
||
|
||
bool ScrInitialize(uptr heap,u32 size,bool jp,bool deb);
|
||
void ScrFinalize();
|
||
void ScrClr();
|
||
int ScrDbgLogGetMax();
|
||
void ScrStep();
|
||
void scr_TopMenuDbg(bool formatted,bool insertted);
|
||
void scr_TopMenu(bool formatted,bool inserted,bool exfm,bool sdins,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_InsExitQuit();
|
||
void scr_Status(tChar *s,eColor col);
|
||
void scr_ResultQuit(tChar *s,eColor col);
|
||
void scr_CountPerMax(int ct,int max);
|
||
void scr_CountPerMax2(int ct,int max,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();
|
||
|
||
#endif
|
||
|