dmuratshin 9 years ago
parent
commit
4896fbc0d3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tools/others/gen_xml_resources.py

+ 6 - 0
tools/others/gen_xml_resources.py

@@ -58,6 +58,12 @@ def gen_xml(args):
     if not args.atlasses:
     if not args.atlasses:
         write("\t</atlas>\n")
         write("\t</atlas>\n")
 
 
+
+    filelist = glob.glob(path + "/*.ogg")
+    for file in filelist:
+        name = os.path.split(file)[1]
+        write("\t\t<sound file='%s'/>\n" % (name))
+
     write("</resources>\n")
     write("</resources>\n")
     dest.close()
     dest.close()