the arc pr
This commit is contained in:
@@ -97,11 +97,7 @@ public class GlobalVars{
|
|||||||
//sounds
|
//sounds
|
||||||
for(Sound sound : Core.assets.getAll(Sound.class, new Seq<>(Sound.class))){
|
for(Sound sound : Core.assets.getAll(Sound.class, new Seq<>(Sound.class))){
|
||||||
if(sound != Sounds.none && sound != Sounds.swish){
|
if(sound != Sounds.none && sound != Sounds.swish){
|
||||||
String name = sound.toString();
|
String name = sound.file.nameWithoutExtension();
|
||||||
int startIndex = name.indexOf("sounds/") + 7;
|
|
||||||
int endIndex = name.indexOf(".ogg");
|
|
||||||
if(endIndex == -1) endIndex = name.indexOf(".mp3");
|
|
||||||
name = name.substring(startIndex, endIndex);
|
|
||||||
soundNames.put(name);
|
soundNames.put(name);
|
||||||
put("@sfx-" + name, Sounds.getSoundId(sound));
|
put("@sfx-" + name, Sounds.getSoundId(sound));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user