Jump to content

Do you use Engine.ConfigDB_WriteFile ?


Silier
 Share

Do you use Engine.ConfigDB_WriteFile?  

3 members have voted

  1. 1. Do you use Engine.ConfigDB_WriteFile("user", "config/user.cfg"); with other path than user.cfg if yes, what is the usecase



Recommended Posts

  • Silier changed the title to Do you use Engine.ConfigDB_WriteFile ?

there is over 20 places in code telling the configuration file along with the scope "user".
the "user" scope is bound by default to "config/user.cfg"
unless you would specify new configuration file for the scope, you will not read configuration from other file than default so setting file path in those functions is pointless and you lost access to stored configuration after restart

basically this https://code.wildfiregames.com/D4616

Link to comment
Share on other sites

One could also say this should be just a function defined in javascript `mod/common` that wraps the engine call in an unique function that would be used in other parts of the codebase instead of hardcoding the path in c++ for each namespace.

But anyway, from a practical standpoint this also looks fine to me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...