Codechange: Use automatic memory management for language pack reading.

This commit is contained in:
Michael Lutz
2020-12-06 21:11:48 +01:00
parent 5cbb2da794
commit 024a3f6259
6 changed files with 66 additions and 77 deletions

View File

@@ -5,7 +5,7 @@
;
[pre-amble]
extern char _config_language_file[MAX_PATH];
extern std::string _config_language_file;
static const char *_support8bppmodes = "no|system|hardware";
@@ -107,9 +107,9 @@ type = SLE_STRQ
var = _ini_blitter
def = nullptr
[SDTG_STR]
[SDTG_SSTR]
name = ""language""
type = SLE_STRB
type = SLE_STR
var = _config_language_file
def = nullptr
cat = SC_BASIC