外部で必要になりそうな定数定義を何点かヘッダへ移動

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2209 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
aoki_ryoma 2008-08-20 14:05:27 +00:00
parent 73a648801d
commit 0224bb4b1e
2 changed files with 11 additions and 3 deletions

View File

@ -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",

View File

@ -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