From d1219eebcbf14cde61b4ab3ca7f673e2c33c9a23 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Sat, 1 Oct 2005 21:20:46 +0000 Subject: [PATCH] This just needs to be tied into the GUI --- zsnes/src/uic.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zsnes/src/uic.c b/zsnes/src/uic.c index 30b7c970..0da41964 100644 --- a/zsnes/src/uic.c +++ b/zsnes/src/uic.c @@ -140,6 +140,7 @@ unsigned char *spc7110romptr; unsigned char MusicRelVol = 75; unsigned char MusicVol = 0; unsigned char MMXextSupport = 0; +extern char *Msgptr; void outofmemory(); void init(); @@ -150,6 +151,8 @@ void InitSPC(); void setnoise(); void SystemInit(); void StartUp(); +unsigned int MessageOn; +unsigned int MsgCount; void *doMemAlloc(size_t size) { @@ -335,3 +338,12 @@ static char *int_to_asc(size_t number) return(buffer); } +extern int WinCheckBatteryTime(); + +void DisplayBatteryStatus() +{ + Msgptr = seconds_to_asc(WinCheckBatteryTime()); + MsgCount = 300; + MessageOn = 1; +} +