File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 1010
1111bool FS_FileExists (FsFileSystem * fs , const char * path ) {
1212 FsFile file ;
13-
13+
1414 char temp_path [FS_MAX_PATH ];
1515 snprintf (temp_path , FS_MAX_PATH , path );
16-
17- if (R_FAILED (fsFsOpenFile (fs , temp_path , FS_OPEN_READ , & file )))
18- return false;
19-
20- fsFileClose (& file );
21- return true;
16+
17+ if (R_SUCCEEDED (fsFsOpenFile (fs , temp_path , FS_OPEN_READ , & file ))) {
18+ fsFileClose (& file );
19+ return true;
20+ }
21+
22+ return false;
2223}
2324
2425bool FS_DirExists (FsFileSystem * fs , const char * path ) {
2526 FsDir dir ;
26-
27+
2728 char temp_path [FS_MAX_PATH ];
2829 snprintf (temp_path , FS_MAX_PATH , path );
29-
30- if (R_SUCCEEDED (fsFsOpenDirectory (fs , temp_path , FS_DIROPEN_DIRECTORY , & dir )))
31- return false;
32-
33- fsDirClose (& dir );
34- return true;
30+
31+ if (R_SUCCEEDED (fsFsOpenDirectory (fs , temp_path , FS_DIROPEN_DIRECTORY , & dir ))) {
32+ fsDirClose (& dir );
33+ return true;
34+ }
35+
36+ return false;
3537}
3638
3739Result FS_MakeDir (FsFileSystem * fs , const char * path ) {
You can’t perform that action at this time.
0 commit comments