0ad/source/ps/GameSetup
wraitii 557fa0312e Fix non-visual autostart, as well as client/host autostart.
Follows 8eecc39e71.

Piping the autostart through a GUI page is easy but requires using the
GUI in non-visual mode, which is problematic since it's not initialized.
The GUI is not needed, only its ability to load scripts, so this diff
fixes the problem by adding an 'entrypoint' script in the new
`autostart` folder that gets called with this unique ability, setting
things up properly. The mod mod gets a placeholder.

Other changes:
- Fix some issues with networked autostart:
  - Players were not assigned slots.
  - The host didn't actually wait for other players.
- Move gamesettings from `gui/gamesettings/` to `gamesettings/`. This
moves attributes as well.
- Move autostart files from `gui/autostart/` to ` autostart/`. Note that
`gui/autostart/` still exists as it's used in the tutorial button from
the main menu.
- Rename the JSI_VFS functions to be explicitly about their function:
the ability to write and the potential restricted folders.
- Don't require `autostart` when using `--autostart-client` in
non-visual mode.

Starting the autostart client/host has poor UX in some situations, but
improving that feature is beyond the scope of this diff.

Suggestions for future work:
- Some files in gui/common should probably be moved elsewhere
- Template loading code is duplicated
- The gamesetup code still needs work for proper UI/logic separation.

Help & comments by: smiley

Reported by: vladislav / Langbart
Fixes #6513

Differential Revision: https://code.wildfiregames.com/D4628
This was SVN commit r26879.
2022-05-15 06:34:17 +00:00
..
tests Add a mod installer, fixes #4027. 2018-04-15 01:46:28 +00:00
Atlas.cpp Add the ability to specify a log level when using dlopen and change it to normal for Atlas. 2014-06-05 17:07:04 +00:00
Atlas.h Add basic help page into the main menu. 2010-07-07 21:47:31 +00:00
CmdLineArgs.cpp Speed up GetAvailableMods for archives. 2021-05-16 13:50:05 +00:00
CmdLineArgs.h Mod and mod-mounting cleanup and improvements. 2021-05-20 14:36:42 +00:00
Config.cpp There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user. 2021-10-17 10:58:51 +00:00
Config.h There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user. 2021-10-17 10:58:51 +00:00
GameSetup.cpp Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
GameSetup.h Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
HWDetect.cpp Adds renderer backend interface and dummy backend. 2022-05-08 22:02:46 +00:00
HWDetect.h Encapsulates information about GL inside device. 2021-12-15 06:43:41 +00:00
Paths.cpp Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
Paths.h Updates data paths on OS X and Windows. On OS X only write to locations inside ~/Library. On Windows make the distinction between local and roaming appdata, and use folder inside My Documents for user-created data. Fixes #1145. 2012-03-22 00:23:31 +00:00