mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
外部で必要になりそうな定数定義を何点かヘッダへ移動
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2209 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
73a648801d
commit
0224bb4b1e
@ -46,10 +46,8 @@
|
||||
|
||||
#define ERRORLOG_NUM_ARGS 9
|
||||
|
||||
#define ERRORLOG_SIZE ( 16 * 1024 ) // ファイルは16KBサイズ固定
|
||||
#define ERRORLOG_BUFSIZE 256 // 1エントリあたりのサイズ
|
||||
#define ERRORLOG_STR_OFFSET 61
|
||||
#define ERRORLOG_NUM_ENTRY ( ERRORLOG_SIZE / ERRORLOG_BUFSIZE ) // ログに書き込まれるエントリの最大数
|
||||
|
||||
|
||||
|
||||
// 内部関数SYSMi_CheckAndCreateDirectoryのエラーチェッカ
|
||||
@ -747,6 +745,11 @@ u32 ERRORLOGi_getTitleId( void )
|
||||
|
||||
}
|
||||
|
||||
FSFile ERRORLOGi_getLogFilePt( void )
|
||||
{
|
||||
return elWork.file;
|
||||
}
|
||||
|
||||
static char *s_strWeek[] = {
|
||||
"SUN",
|
||||
"MON",
|
||||
|
||||
@ -31,6 +31,9 @@ extern "C" {
|
||||
// このサイズを超えた文字列は切り捨てられます
|
||||
// ERRORLOG_STR_LENGTH = ERRORLOG_BUFSIZE - ERRORLOG_STR_OFFSET - 1
|
||||
#define ERRORLOG_STR_LENGTH 194
|
||||
#define ERRORLOG_SIZE ( 16 * 1024 ) // ファイルは16KBサイズ固定
|
||||
#define ERRORLOG_BUFSIZE 256 // 1エントリあたりのサイズ
|
||||
#define ERRORLOG_NUM_ENTRY ( ERRORLOG_SIZE / ERRORLOG_BUFSIZE ) // ログに書き込まれるエントリの最大数
|
||||
|
||||
// 既に書き込まれたエラーログを表現するためのエントリ
|
||||
typedef struct ErrorLogEntry{
|
||||
@ -82,6 +85,8 @@ extern const ErrorLogEntry* ERRORLOG_Read( int idx );
|
||||
// for RED Launcher
|
||||
extern BOOL ERRORLOG_Write( u64 errorCode );
|
||||
|
||||
extern FSFile ERRORLOGi_getLogFilePt( void );
|
||||
|
||||
#endif // SDK_ARM9
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Loading…
Reference in New Issue
Block a user