mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 05:40:36 +00:00
unknown battery level on windows should not be displayed
This commit is contained in:
parent
1942d29a33
commit
1f450834ed
2
deps/glslang/glslang
vendored
2
deps/glslang/glslang
vendored
@ -1 +1 @@
|
|||||||
Subproject commit ec2e27adf86a911c5af6c676a539166b5674a09d
|
Subproject commit b56f4ac72c57f5c50f14ddb0bf1f78eaaef21c2b
|
@ -2658,6 +2658,10 @@ static void xmb_frame(void *data)
|
|||||||
state = frontend->get_powerstate(&seconds, &percent);
|
state = frontend->get_powerstate(&seconds, &percent);
|
||||||
time_to_update = false;
|
time_to_update = false;
|
||||||
last_time = current_time;
|
last_time = current_time;
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (percent == 255)
|
||||||
|
percent = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
*msg = '\0';
|
*msg = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user