libretro / parallel-n64

Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus.
309 stars 128 forks source link

Loading a state resets the game #765

Open MatPoliquin opened 10 months ago

MatPoliquin commented 10 months ago

I am working a project that lets machine learning models train on retro games. So far there is many libretro emulators successfully integrated such as Sega Genesis, 32x, Saturn, Super Nintendo etc. but when I tried to integrate parallel_n64 the only thing that doesn't work is loading a state because it resets the game at the beginning.

I debugged through parallel_n64 code and it seems the state is properly loaded but than after one frame it resets.

Any ideas why? parallel_n64 is the only emulator I integrated that does that. You can see the code that interfaces with libretro here: https://github.com/Farama-Foundation/stable-retro/blob/master/src/emulator.cpp

Notes: I tried with many games such as Mortal Kombat Trilogy, MK4, Wave Race and ClayFighter 63 1/3. The bug happens 100% of the time.

I compiled and tested the core on Ubuntu 22.04, gcc version 11.4.0