Project

General

Profile

Actions

Emulator Issues #12119

closed

Save states reported on wrong date on 2000

Added by ThePhoenix almost 4 years ago. Updated almost 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-12292

Description

Game Name?

Any

What's the problem? Describe what went wrong.

If you do a save state in year 2000, the date will result to be 2136 instead.

What steps will reproduce the problem?

I encountered this issue because of pokemon RNG abuse, I am forced to run the vba/pokemon box in 2000

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

Yes

Is the issue present in the latest stable version?

Yes

What are your PC specifications? (CPU, GPU, Operating System, more)

Win10 x64

Actions #1

Updated by JosJuice almost 4 years ago

  • Status changed from New to Questionable

Please include more detailed reproduction steps. In what way are we supposed to change time to year 2000, for instance? Do we have to only load a savestate, or save a savestate, or both? Where do we check the date?

Actions #2

Updated by ThePhoenix almost 4 years ago

JosJuice wrote:

Please include more detailed reproduction steps. In what way are we supposed to change time to year 2000, for instance? Do we have to only load a savestate, or save a savestate, or both? Where do we check the date?

Just set the windows date to 2000 and do the savestate.
Then, when doing "load save state", it will show the date it has been made, but it will report 2136

Actions #3

Updated by Billiard26 almost 4 years ago

Which game?
Save a state at any point?
"Where do we check the date?"
Where does it say 2136?

Actions #4

Updated by ThePhoenix almost 4 years ago

Billiard26 wrote:

Which game?
Any game
Save a state at any point?
Any point
"Where do we check the date?"
Where does it say 2136?
As I said, it will be displayed in the save states dropdown list when loading them.

Actions #5

Updated by Billiard26 almost 4 years ago

  • Status changed from Questionable to Accepted
  • Assignee set to Billiard26

The cause is integer underflow in Timer::GetDoubleTime for dates before ~2008.

Actions #6

Updated by Billiard26 almost 4 years ago

  • Status changed from Accepted to Fix pending
Actions #8

Updated by JosJuice almost 4 years ago

  • Status changed from Fix pending to Fixed
  • Fixed in set to 5.0-12292
Actions

Also available in: Atom PDF