added initially setting artwork identifier
authorHolger Schemel <info@artsoft.org>
Fri, 15 Apr 2022 10:13:13 +0000 (12:13 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 15 Apr 2022 10:13:13 +0000 (12:13 +0200)
src/init.c

index 315983ac896ca3428199c65171534ab91d923437..136abe6a8717dea9a65db8d3c2358a543645d629 100644 (file)
@@ -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");