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@1250 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
73e3238bc7
commit
3790f9db9c
@ -86,7 +86,11 @@ BOOL kamiWriteNandfirm(const char* pFullPath, NAMAlloc allocFunc, NAMFree freeFu
|
|||||||
// .nandファイルオープン
|
// .nandファイルオープン
|
||||||
FS_InitFile(&file);
|
FS_InitFile(&file);
|
||||||
open_is_ok = FS_OpenFile(&file, pFullPath);
|
open_is_ok = FS_OpenFile(&file, pFullPath);
|
||||||
// OS_Printf("FS_OpenFile(\"%s\") ... %s!\n", pFullPath, open_is_ok ? "OK" : "ERROR");
|
if (!open_is_ok)
|
||||||
|
{
|
||||||
|
OS_Warning("Failure! FS_OpenFile");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// サイズチェック
|
// サイズチェック
|
||||||
file_size = FS_GetFileLength(&file) ;
|
file_size = FS_GetFileLength(&file) ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user