But does the iOS version need MP3s now?
This commit is contained in:
@@ -123,7 +123,7 @@ public class AssetsProcess extends BaseProcessor{
|
|||||||
if(SourceVersion.isKeyword(name)) name += "s";
|
if(SourceVersion.isKeyword(name)) name += "s";
|
||||||
|
|
||||||
String filepath = path.substring(path.lastIndexOf("/") + 1) + "/" + fname;
|
String filepath = path.substring(path.lastIndexOf("/") + 1) + "/" + fname;
|
||||||
String filename = "arc.Core.app.getType() != arc.Application.ApplicationType.iOS ? \"" + filepath + "\" : \"" + filepath.replace(".ogg", ".mp3") + "\"";
|
String filename = "\"" + filepath + "\"";
|
||||||
|
|
||||||
loadBegin.addStatement("arc.Core.assets.load(" + filename + ", " + rtype + ".class).loaded = a -> " + name + " = (" + rtype + ")a", filepath, filepath.replace(".ogg", ".mp3"));
|
loadBegin.addStatement("arc.Core.assets.load(" + filename + ", " + rtype + ".class).loaded = a -> " + name + " = (" + rtype + ")a", filepath, filepath.replace(".ogg", ".mp3"));
|
||||||
|
|
||||||
|
|||||||
@@ -14,22 +14,6 @@ task copyAssets(){
|
|||||||
from "../core/assets"
|
from "../core/assets"
|
||||||
into "assets/"
|
into "assets/"
|
||||||
}
|
}
|
||||||
|
|
||||||
exec{
|
|
||||||
ignoreExitValue true
|
|
||||||
commandLine "sh", "./convert_audio.sh", "assets/sounds"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec{
|
|
||||||
ignoreExitValue true
|
|
||||||
commandLine "sh", "./convert_audio.sh", "assets/music"
|
|
||||||
}
|
|
||||||
|
|
||||||
delete{
|
|
||||||
delete fileTree('assets'){
|
|
||||||
include '**/*.ogg'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user