Project

General

Profile

Emulator Issues #12119

Save states reported on wrong date on 2000

Added by ThePhoenix 11 months ago. Updated 9 months 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

History

#1 Updated by JosJuice 11 months 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?

#2 Updated by ThePhoenix 11 months 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

#3 Updated by Billiard26 9 months ago

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

#4 Updated by ThePhoenix 9 months 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.

#5 Updated by Billiard26 9 months ago

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

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

#6 Updated by Billiard26 9 months ago

  • Status changed from Accepted to Fix pending

#8 Updated by JosJuice 9 months ago

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

Also available in: Atom PDF