User Tools

Site Tools


en:orx:config:encryption

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:config:encryption [2010/05/11 20:50 (14 years ago)] iarwainen:orx:config:encryption [2024/03/11 14:47 (6 weeks ago)] (current) – crypted.ini -> encrypted.ini iarwain
Line 20: Line 20:
 ; Finally we include the file containing all the settings that we don't want to end user to mess up with ; Finally we include the file containing all the settings that we don't want to end user to mess up with
 ; If the end-user did provide values for them, they'll be overidden here anyway ; If the end-user did provide values for them, they'll be overidden here anyway
-@crypted.ini@</code>+@encrypted.ini@</code>
  
 In the same way, we can add included files for customized inputs, for example. We would add it just after the inclusion of config.ini.\\ In the same way, we can add included files for customized inputs, for example. We would add it just after the inclusion of config.ini.\\
Line 40: Line 40:
  
 ; Non-overridable config stuff (ie. everything else) ; Non-overridable config stuff (ie. everything else)
-@crypted.ini@</code>+@encrypted.ini@</code>
  
 And, of course, you might not want the end-user to mess up with this file, so we now need to encrypt it when releasing our game. And, of course, you might not want the end-user to mess up with this file, so we now need to encrypt it when releasing our game.
Line 55: Line 55:
 <code c>orxConfig_SetEncryptionKey("MyVeryLongEncryptionKey");</code> <code c>orxConfig_SetEncryptionKey("MyVeryLongEncryptionKey");</code>
  
-Of course, as orx will load its main config file it is initialized, you need to issue the call to ''orxConfig_SetEncryptionKey()'' before initializing orx. It would look something like this:+Of course, as orx will load its main config file **when** it is initialized, you need to issue the call to ''orxConfig_SetEncryptionKey()'' before initializing orx. It would look something like this:
  
 <code c>int main(int argc, char **argv) <code c>int main(int argc, char **argv)
en/orx/config/encryption.1273636229.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)