mirror of
https://github.com/joel16/VitaShell.git
synced 2024-11-23 19:59:42 +00:00
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:
commit
2fa16fa175
7
utils.c
7
utils.c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user