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