itsjustcurtis / MenyooSP

[or Menyoo PC] - Trainer/mod menu for Grand Theft Auto V (single-player).
https://www.gta5-mods.com/scripts/menyoo-2-0
GNU General Public License v3.0
34 stars 6 forks source link

Fix Sync With System Time #74

Closed Hydraxonn closed 3 months ago

Hydraxonn commented 3 months ago

This minor edit should fix the issue with the year swapping incorrectly when syncing with system time. it also uses a safer function to set the time. I couldn't get this to compile, through GitHub Actions or Visual Studio. Judging by the simplicity of my edits and the history of the actions builds, I don't suspect this is my fault. Hopefully this can be merged with the main repo with no issue. Thanks for reviving this fantastic mod!

itsjustcurtis commented 3 months ago

Appreciate the suggestion. I'll compile in my local copy and test the functionality. I don't believe the namespace CLOCK:: needs to be included on the functions in order for them to work, so that can be cleaned up slightly. Good spot with the date being inverted, I'm unsure if that was a mistake or if there was a recent change to that native.

Hydraxonn commented 3 months ago

I don't think it was a recent change that broke this. As far as I remember, that function has been broken for a while. Thanks for the fast response, I look forward to this function being fixed!

itsjustcurtis commented 2 months ago

Finally got around to testing this, appears to compile and run in-game fine.