mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
read language from Language.ini file
to avoid having to ship a whole ja2.ini for languages that currently don't command-line /language:german still works, but INI file is prioritized format: ``` [Language] LANGUAGE = ITALIAN ```
This commit is contained in:
committed by
majcosta
parent
d03989051a
commit
8d1877d26d
@@ -8,8 +8,10 @@
|
||||
#include "Campaign Types.h"
|
||||
#include "environment.h"
|
||||
|
||||
#include <string_view>
|
||||
#define GAME_INI_FILE "Ja2.ini"
|
||||
|
||||
constexpr std::string_view LANGUAGE_INI_FILE{"Language.ini"};
|
||||
//If you add any options, MAKE sure you add the corresponding string to the Options Screen string array.
|
||||
// look up : zOptionsScreenHelpText , zOptionsToggleText
|
||||
//Also, define its initialization and add its load/save to INI lines in : InitGameSettings() , SaveGameSettings() , LoadGameSettings()
|
||||
|
||||
Reference in New Issue
Block a user