rnd-20020428-3-src
[rocksndiamonds.git] / src / libgame / setup.c
index fefe33dfbd0dfa074578769eb7d865371ce4b9ee..122f1dfe2a8415bdbacc9784e2e9bb4d3d658428 100644 (file)
@@ -1649,12 +1649,12 @@ static boolean LoadArtworkInfoFromArtworkConf(TreeInfo **node_first,
 
   if (node_parent == NULL)             /* top level group */
   {
-    artwork_new->basepath = base_directory;
-    artwork_new->fullpath = artwork_new->filename;
+    artwork_new->basepath = getStringCopy(base_directory);
+    artwork_new->fullpath = getStringCopy(artwork_new->filename);
   }
   else                                 /* sub level group */
   {
-    artwork_new->basepath = node_parent->basepath;
+    artwork_new->basepath = getStringCopy(node_parent->basepath);
     artwork_new->fullpath = getPath2(node_parent->fullpath, directory_name);
   }
 
@@ -1814,6 +1814,25 @@ void LoadArtworkInfo()
 #endif
 }
 
+void LoadSoundsInfo()
+{
+#if 0
+  char *filename = getCustomSoundFilename(SOUNDSINFO_FILENAME);
+  struct SetupFileList *setup_file_list = loadSetupFileList(filename);
+
+  if (setup_file_list)
+  {
+#if 0
+    for (i=0; i<NUM_LEVELINFO_TOKENS; i++)
+      setSetupInfo(levelinfo_tokens, i,
+                  getTokenValue(setup_file_list, levelinfo_tokens[i].text));
+#endif
+
+    freeSetupFileList(setup_file_list);
+  }
+#endif
+}
+
 static void SaveUserLevelInfo()
 {
   char *filename;