Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
GrapheneCt authored Feb 22, 2020
1 parent f606bb1 commit fba360b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions appbgservice/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,9 @@ int main(void)

/* ftpvita */

int run = 1;
SceAppUtilInitParam init_param;
SceAppUtilBootParam boot_param;

sceSysmoduleLoadModule(SCE_SYSMODULE_NET);

memset(&init_param, 0, sizeof(SceAppUtilInitParam));
memset(&boot_param, 0, sizeof(SceAppUtilBootParam));
sceAppUtilInit(&init_param, &boot_param);

ftpvita_set_info_log_cb(sendNotificationFixed);

ftpvita_init_app();

/* emergency callback in case system somehow gets suspended */
Expand All @@ -161,7 +152,7 @@ int main(void)

/* main loop */

while (run) {
while (1) {
sceKernelPowerTick(SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND);
sceKernelDelayThreadCB(100);
}
Expand Down

0 comments on commit fba360b

Please sign in to comment.