mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-03 04:44:24 +07:00
But does the iOS version need MP3s now?
This commit is contained in:
parent
f5ffee54ac
commit
eba559d0ff
@ -123,7 +123,7 @@ public class AssetsProcess extends BaseProcessor{
|
||||
if(SourceVersion.isKeyword(name)) name += "s";
|
||||
|
||||
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"));
|
||||
|
||||
|
@ -14,22 +14,6 @@ task copyAssets(){
|
||||
from "../core/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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user