mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
But does the iOS version need MP3s now?
This commit is contained in:
parent
f5ffee54ac
commit
eba559d0ff
2 changed files with 1 additions and 17 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue