display_driver: Use proper impl of sceDisplayGetBrightness* depending on FW

This commit is contained in:
Joel16 2021-12-10 14:51:22 -05:00
parent ebd450a193
commit 6aa13c18c9

View File

@ -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;
}