#4664: create all configuration directory subfolders at program start
-------------------------------------------------+-------------------------
        Reporter:  Forgon                        |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  unspecified
       Component:  other                         |
Operating System:  All/Non-Specific              |
-------------------------------------------------+-------------------------
 Several configuration directory subfolders are missing when starting the
 game:

 * 'challenges' for custom challenges is created after opening the menu
 'Single Player' -> 'Challenges' (see './src/challenge.cpp)
 * 'mods' only contains 'downloads' (see './src/main.cpp'). The Windows
 installer adds 'campaign', 'global', 'multiplay' and 'music', but still
 misses  'autoload' (see './pkg/nsis/NSIS.template.in')
 * 'tests' for test games launched with `--skirmish` is never created
 * the 'userdata' subdirectories 'campaign' and 'mp' for custom templates
 are created after launching campaign and multiplayer games, respectively
 (see './src/game.cpp')

 This patch ensures all configuration directory subfolders are created when
 starting the game in the function 'realmain()' from './src/main.cpp'.
 After applying it, the output of `tree -d` inside a new configuration
 directory should look like this:

 {{{
 .
 ├── challenges
 ├── logs
 ├── maps
 ├── mods
 │   ├── autoload
 │   ├── campaign
 │   ├── downloads
 │   ├── global
 │   ├── multiplay
 │   └── music
 ├── multiplay
 │   └── players
 ├── music
 ├── savegames
 │   ├── campaign
 │   └── skirmish
 ├── screenshots
 ├── tests
 └── userdata
     ├── campaign
     └── mp

 21 directories
 }}}

--
Ticket URL: <http://developer.wz2100.net/ticket/4664>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to