mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 09:00:37 +02:00
installer: settle delay before first dialog (fixes flash-dismiss)
This commit is contained in:
1 parent
80587d44d3
commit
fcfa3f9040
1 file changed
+5
@@ -7,6 +7,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <orbis/libkernel.h>
|
||||
#include "ui.h"
|
||||
#include "send.h"
|
||||
#include "icfg.h"
|
||||
@@ -192,6 +193,10 @@ static void step_inject(void){
|
||||
int main(void){
|
||||
int q;
|
||||
if(ui_init() != 0) return 1;
|
||||
/* Let the system finish bringing the app to foreground before the
|
||||
* first dialog: opening one mid-transition gets auto-dismissed
|
||||
* (looks like a half-second flash, then the app exits). */
|
||||
sceKernelSleep(3);
|
||||
q = ui_confirm("Install orbisRPC?\n\nCopies the daemon, sets up config, checks WiFi, saves your token, and starts it.");
|
||||
if(q != 1) return 0;
|
||||
if(step_files() != 0) return 1;
|
||||
|
||||
Reference in new issue
Block a user