Okay so, i was playing this game called Earthbound Beginnings in an emulator called "Mesen"
And apparently, i was playing in an "unstable emulator". So right near the end of the game i got the anti-piracy measure that automatically wipes your save file and doesn't let you progress beyond that point. :(