MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Pr3tty F1y
MAME Fan
Reged: 07/18/05
Posts: 396
Send PM


Arcade games and Y2K non-compliance
#394368 - 07/03/22 02:34 AM


This is just something stupid that I happened across and probably doesn't even deserve a post, but I thought it was interesting enough.

I was playing around in the setup of WWF: Wrestlemania (arcade version in MAME) and I noticed there as a RTC setting for date/time. Oddly, for a game that was released in 1995, the RTC isn't Y2K compliant.

I haven't checked the source, but I'm assuming MAME is pulling the current system time like it does for other systems that reference a RTC (e.g., STV seems to be Y2K compliant and displays correct date/time information), but the date/time in WWF: Wrestlemania is borked likely due to the overflow of the current date/time compared to what the system supports.

I just thought it was odd that a game released in 1995 has full support of the prior 95 years of it's non-existence (i.e., it displays a 4 digit year, although it may only be storing the last two digits) with only room for +5 years of operation before the RTC would no longer be functional.

I know that it likely wasn't a major concern as games' popularity drops significantly over time, but I don't think it would be a bad assumption that the game would still be in operation in many locations in the year 2000 in after.

It doesn't really matter in the grand scheme of things, but I just thought it was an interesting note.



amused
MAME Fan
Reged: 04/24/08
Posts: 300
Send PM


Re: Arcade games and Y2K non-compliance new [Re: Pr3tty F1y]
#394690 - 08/19/22 04:23 AM


I think that the usual workaround for dealing with a non-Y2K-compliant calendar is "28-year rollback". That means, for the year 2000 use 1972, for 2001 use 1973, for 2002 use 1974, and so forth. That way, the days of the week line up correctly: for example, today, August 18, 2022 is a Thursday, and August 18, 1994 (exactly 28 years back) was also a Thursday.

How does MAME handle non-Y2K-compliant calendars? Does it just go back exactly 100 years, or what?



Heihachi_73
I am the Table!
Reged: 10/29/03
Posts: 1074
Loc: Melbourne, Australia
Send PM


Re: Arcade games and Y2K non-compliance new [Re: amused]
#394697 - 08/21/22 02:31 AM


> How does MAME handle non-Y2K-compliant calendars? Does it just go back exactly 100
> years, or what?

AFAIK MAME simply uses the current date and time when asked, it's up to the emulated software whether it's Y2K compliant or not. I'm not sure if it's possible to save the date/time without MAME overriding it the next time it is run.


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 451 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 422