Merge pull request #47 from soywiz/keep-power-lock

Enabling ftp activates powerlock, but activating a game from ftp, lau…
This commit is contained in:
TheOfficialFloW 2016-09-05 20:39:55 +02:00 committed by GitHub
commit 2fa16fa175

View File

@ -109,7 +109,7 @@ void infoDialog(char *msg, ...) {
int power_tick_thread(SceSize args, void *argp) {
while (1) {
if (lock_power) {
if (lock_power > 0) {
sceKernelPowerTick(SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND);
}
@ -126,11 +126,12 @@ void initPowerTickThread() {
}
void powerLock() {
lock_power = 1;
lock_power++;
}
void powerUnlock() {
lock_power = 0;
lock_power--;
if (lock_power < 0) lock_power = 0;
}
void readPad() {