Files
assaultcube-/config
ac-stef b650fca2ca persistidents cleanup
Restore the old persistidents system from AC 1.0, since it's working as
intended - if used properly.

As a reminder:

  * aliases created by "const" and "tempalias" are never persistent
  * aliases created or altered by "alias" or "=" become persistent, if
    the persistidents flag is set during that operation
  * persistidents if false during the execution of almost all config files
    during game start - those files can create aliases with default values
    which will not be persistent (until changed later while the flag is
    set)
  * before saved.cfg is executed, the flag is set and stays set all
    throughout the game - which means, that all changes (from menus, for
    example) will change the altered alias to "persistent"
  * exceptions for map or model config files are unnecessary, since those
    run restricted and can't create aliases anyway
  * exceptions are necessary for "late run" config files like those in
    config/opt/

The new command "persistidents" may be used to manually set or clear the
flag. It also returns the current state of the flag. If used in a config
file, the flag is restored to its original value when the file ends
execution.

In short: only late-run config files (meaning: run after saved.cfg was
restored) may need to manually set/reset the flag. Use const and tempalias
where appropriate and clear persistidents before creating an alias with a
not-to-save default value that may be changed and made persistent later.

DOCREF persistidents
2017-05-05 15:50:59 +02:00
..
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2014-05-14 22:54:37 +02:00
2016-08-15 11:52:49 +02:00
2017-04-24 19:51:40 +02:00
2017-05-05 15:50:59 +02:00
2016-09-14 20:35:13 +02:00
2016-09-14 20:35:13 +02:00
2017-05-05 15:50:59 +02:00
2014-05-14 22:54:37 +02:00
2014-05-14 22:54:37 +02:00
2014-12-13 22:35:55 +01:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2017-05-05 15:50:59 +02:00
2015-06-10 14:28:50 +02:00
2014-05-14 22:54:37 +02:00
2014-05-14 22:54:37 +02:00
2015-06-10 14:28:50 +02:00