mirror of
https://github.com/joel16/CMFileManager-PSP.git
synced 2024-11-23 03:39:42 +00:00
display_driver: Use proper impl of sceDisplayGetBrightness* depending on FW
This commit is contained in:
parent
ebd450a193
commit
6aa13c18c9
@ -50,7 +50,12 @@ int pspDisplayDisable(void) {
|
||||
|
||||
int module_start(SceSize args, void *argp) {
|
||||
int unk = 0;
|
||||
sceDisplayGetBrightness(&old_brightness_level, &unk);
|
||||
|
||||
if (sceKernelDevkitVersion() < 0x03070110)
|
||||
sceDisplayGetBrightness(&old_brightness_level, &unk);
|
||||
else
|
||||
sceDisplayGetBrightness371(&old_brightness_level, &unk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user