mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Show file errors before asking to install
This commit is contained in:
parent
463e6a6394
commit
4f1657ab2c
@ -361,19 +361,6 @@ bool install(char* fpath, bool systemTitle)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//confirmation message
|
|
||||||
{
|
|
||||||
char str[] = "Are you sure you want to install\n";
|
|
||||||
char* msg = (char*)malloc(strlen(str) + strlen(fpath) + 8);
|
|
||||||
sprintf(msg, "%s%s\n", str, fpath);
|
|
||||||
|
|
||||||
bool choice = choiceBox(msg);
|
|
||||||
free(msg);
|
|
||||||
|
|
||||||
if (choice == NO)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//start installation
|
//start installation
|
||||||
clearScreen(&bottomScreen);
|
clearScreen(&bottomScreen);
|
||||||
|
|
||||||
@ -422,6 +409,19 @@ bool install(char* fpath, bool systemTitle)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//confirmation message
|
||||||
|
{
|
||||||
|
char str[] = "Are you sure you want to install\n";
|
||||||
|
char* msg = (char*)malloc(strlen(str) + strlen(fpath) + 8);
|
||||||
|
sprintf(msg, "%s%s\n", str, fpath);
|
||||||
|
|
||||||
|
bool choice = choiceBox(msg);
|
||||||
|
free(msg);
|
||||||
|
|
||||||
|
if (choice == NO)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!sdnandMode && !nandio_unlock_writing())
|
if (!sdnandMode && !nandio_unlock_writing())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@ -355,7 +355,6 @@ static bool delete(Menu* m)
|
|||||||
{
|
{
|
||||||
char dirPath[64];
|
char dirPath[64];
|
||||||
sprintf(dirPath, "%.*s", sdnandMode ? 27 : 29, fpath);
|
sprintf(dirPath, "%.*s", sdnandMode ? 27 : 29, fpath);
|
||||||
nocashMessage(dirPath);
|
|
||||||
|
|
||||||
if (!dirExists(dirPath))
|
if (!dirExists(dirPath))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user