Use a simple formula for the subdirectory in SaveLoadWindow
commit00aba83ad99eeecbd5aeedd49ec4f086a1f42fef
authorcirdan <cirdansw@gmail.com>
Fri, 13 Oct 2017 18:41:12 +0000 (13 20:41 +0200)
committercirdan <cirdansw@gmail.com>
Fri, 13 Oct 2017 18:41:12 +0000 (13 20:41 +0200)
tree67a45c549e753be65d74c359bd36b74cad698590
parent64d992921fdbbd67f554ca6ec737eed7c8d85b53
Use a simple formula for the subdirectory in SaveLoadWindow

Use a simple arithmetic formula to compute the subdirectory to use
for a given file type in the constructor of struct SaveLoadWindow.
There are static assertions in place to ensure that we catch changes
to the enum values that make the formula fail.
src/fios_gui.cpp