Fix deprecation warning with move to new samskivert library.

This commit is contained in:
Ray J. Greenwell
2012-10-02 17:48:01 -07:00
parent 7df6f0160f
commit ee9a81512f
@@ -118,15 +118,14 @@ public class SoundLoader
{ {
Config c = _configs.get(packagePath); Config c = _configs.get(packagePath);
if (c == null) { if (c == null) {
String propPath = packagePath + Sounds.PROP_NAME;
Properties props = new Properties(); Properties props = new Properties();
String propFilename = packagePath + Sounds.PROP_NAME + ".properties";
try { try {
props = ConfigUtil.loadInheritedProperties(propPath + ".properties", props = ConfigUtil.loadInheritedProperties(propFilename, _rmgr.getClassLoader());
_rmgr.getClassLoader());
} catch (IOException ioe) { } catch (IOException ioe) {
log.warning("Failed to load sound properties", "path", propPath, ioe); log.warning("Failed to load sound properties", "filename", propFilename, ioe);
} }
c = new Config(propPath, props); c = new Config(props);
_configs.put(packagePath, c); _configs.put(packagePath, c);
} }
return c; return c;