• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Reading and writing into the registry in Essentials

Savordez

It's time to end fangames.
  • 101
    Posts
    11
    Years
    After noticing the MiniRegistry module (in SpriteWindow) I started looking for documentation of it, but couldn't find any. Looking at the instances where it is used in the code I'd say it's pretty simple, but I'm not sure if there is a way to write into the registry.
     
    You absolutely don't ever need to put anything in the Registry. Don't bother. Seriously. Even information like the screen size to use is put in the save file, despite that information being used prior to (officially) loading the saved game. You can do the same if you must.
     
    Aw. I was looking for a way to save small data for the game to read (so I could save data across multiple saves quickly), and the registry was a good place to put them since most of the players won't mess with it. I am already using $PokemonSystem to save some data but it can be easily gotten rid of by removing the save file.
     
    Last edited:
    Oh dear god, please no. Avoid writing to the registry if at all possible. You're way better off saving everything to disk. If you want to save small data like user settings across save data, just create a separate config file.

    I think Unity by default also writes to the registry for its persistence module. It's...really bad practice.
     
    Is there a reason why it's such a bad idea? I was only thinking of one of two registry entries, but I guess I could save files to the AppData folder instead.
     
    Back
    Top