Add: store base graphics parameters in openttd.cfg.

This commit is contained in:
frosch
2023-10-02 14:37:43 +02:00
committed by frosch
parent f09fda1ff0
commit de3f29d7b2
7 changed files with 50 additions and 0 deletions

View File

@@ -198,6 +198,9 @@ bool BaseMedia<Tbase_set>::AddFile(const std::string &filename, size_t basepath_
*prev = set;
set->next = duplicate->next;
/* Keep baseset configuration, if compatible */
set->CopyCompatibleConfig(*duplicate);
/* If the duplicate set is currently used (due to rescanning this can happen)
* update the currently used set to the new one. This will 'lie' about the
* version number until a new game is started which isn't a big problem */