diff options
-rw-r--r-- | src/deh_main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/deh_main.c b/src/deh_main.c index 3f0a6f29..75934087 100644 --- a/src/deh_main.c +++ b/src/deh_main.c @@ -39,6 +39,8 @@ extern deh_section_t *deh_section_types[]; extern char *deh_signatures[]; +static boolean deh_initialized = false; + // If true, we can do long string replacements. boolean deh_allow_long_strings = false; @@ -322,6 +324,12 @@ int DEH_LoadFile(char *filename) { deh_context_t *context; + if (!deh_initialized) + { + InitializeSections(); + deh_initialized = true; + } + printf(" loading %s\n", filename); context = DEH_OpenFile(filename); @@ -346,8 +354,6 @@ void DEH_Init(void) char *filename; int p; - InitializeSections(); - //! // @category mod // |