From: Holger Schemel Date: Fri, 15 Apr 2022 10:13:13 +0000 (+0200) Subject: added initially setting artwork identifier X-Git-Tag: 4.3.2.0~8 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ac9feee5631d3725a6d7b75b065c8be33a22d4b5;p=rocksndiamonds.git added initially setting artwork identifier --- diff --git a/src/init.c b/src/init.c index 315983ac..136abe6a 100644 --- a/src/init.c +++ b/src/init.c @@ -6260,6 +6260,13 @@ static char *setNewArtworkIdentifier(int type) return artwork_new_identifier; } +static void InitArtworkIdentifier(void) +{ + setNewArtworkIdentifier(ARTWORK_TYPE_GRAPHICS); + setNewArtworkIdentifier(ARTWORK_TYPE_SOUNDS); + setNewArtworkIdentifier(ARTWORK_TYPE_MUSIC); +} + void ReloadCustomArtwork(int force_reload) { int last_game_status = game_status; // save current game status @@ -6509,6 +6516,9 @@ void OpenAll(void) InitOverrideArtwork(); // needs to know current level directory print_timestamp_time("InitOverrideArtwork"); + InitArtworkIdentifier(); // needs to know current level directory + print_timestamp_time("InitArtworkIdentifier"); + InitImages(); // needs to know current level directory print_timestamp_time("InitImages");