mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-12-06 03:07:19 +00:00
I do not like if(..).
This commit is contained in:
1 parent
2641e4922b
commit
c6f0798196
10 files changed
+111
-107
No files matched your search
@@ -17,8 +17,7 @@ Result CIA_LaunchTitle(u64 titleId, FS_MediaType mediaType) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Result deletePrevious(u64 titleid, FS_MediaType media)
|
||||
{
|
||||
Result deletePrevious(u64 titleid, FS_MediaType media) {
|
||||
Result ret = 0;
|
||||
|
||||
u32 titles_amount = 0;
|
||||
@@ -65,8 +64,7 @@ FS_MediaType getTitleDestination(u64 titleId) {
|
||||
// Variables.
|
||||
u64 installSize = 0, installOffset = 0;
|
||||
|
||||
Result installCia(const char * ciaPath, bool updatingSelf)
|
||||
{
|
||||
Result installCia(const char * ciaPath, bool updatingSelf) {
|
||||
u32 bytes_read = 0, bytes_written;
|
||||
installSize = 0, installOffset = 0; u64 size = 0;
|
||||
Handle ciaHandle, fileHandle;
|
||||
@@ -124,6 +122,7 @@ Result installCia(const char * ciaPath, bool updatingSelf)
|
||||
printf("Error in:\nAM_FinishCiaInstall\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = FSFILE_Close(fileHandle);
|
||||
if (R_FAILED(ret)) {
|
||||
printf("Error in:\nFSFILE_Close\n");
|
||||
@@ -131,8 +130,8 @@ Result installCia(const char * ciaPath, bool updatingSelf)
|
||||
}
|
||||
|
||||
if (updatingSelf) {
|
||||
if (R_FAILED(ret = CIA_LaunchTitle(info.titleID, MEDIATYPE_SD)))
|
||||
return ret;
|
||||
if (R_FAILED(ret = CIA_LaunchTitle(info.titleID, MEDIATYPE_SD))) return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user