Back to OGG

This commit is contained in:
Anuken
2020-11-11 10:55:19 -05:00
parent 4f4f8f08bb
commit a4f5c1c55f
139 changed files with 54 additions and 7 deletions

View File

@@ -120,10 +120,10 @@ public class AssetsProcess extends BaseProcessor{
names.add(name);
}
if(SourceVersion.isKeyword(name)) name += "s";
if(SourceVersion.isKeyword(name)) name += "s";
String filepath = path.substring(path.lastIndexOf("/") + 1) + "/" + fname;
String filename = "\"" + filepath + "\"";
String filename = "arc.Core.app.getType() != arc.Application.ApplicationType.iOS ? \"" + filepath + "\" : \"" + filepath.replace(".ogg", ".mp3") + "\"";
loadBegin.addStatement("arc.Core.assets.load(" + filename + ", " + rtype + ".class).loaded = a -> " + name + " = (" + rtype + ")a", filepath, filepath.replace(".ogg", ".mp3"));