libretro / snes9x

Snes9x - Portable Super Nintendo Entertainment System (TM) emulator
http://www.snes9x.com
Other
47 stars 57 forks source link

Randomize ram on game startup? #110

Closed SimpleTease closed 4 years ago

SimpleTease commented 6 years ago

Hi, can there be feature to randomize memory when on bootup? Some games like Super Off Road are known to use uninitialized ram as a seed for random number generator. This controls bonus placements, ai nitro behavior, and some other things -- makes game more unpredictable. iirc other games do this for random weather behavior or showing random characters on splash screens. Thanks!

ghost commented 6 years ago

I added a randomizer flag inside snes9x libretro file: static void update_variables(void)

It works but this setting doesn't seem to save when Retroarch closes (always default disabled on emu start). Does anyone know why this happens? I'd also like to try adding M.A.C.S. Rifle support sometime later.

edit: Found out typo can cause this problem. Fixed.

ghost commented 6 years ago

Randomizer works in nightly. New random demo track on bootup. Please try and close if confirm. https://buildbot.libretro.com/nightly/

stellarporter commented 5 years ago

libretro has the randomizer option. Super Off Road demos show different stuff at every clean bootup. Some other demos show same behavior.