private String getIDEPath() throws IOException { URL url = LwjglResourceFilePath.class.getClassLoader().getResource(getPath()); if (url == null) throw new IOException("Error, path not found."); String urlString = url.toString(); SilenceEngine.Platform platform = SilenceEngine.display.getPlatform(); if (platform == SilenceEngine.Platform.WINDOWS_32 || platform == SilenceEngine.Platform.WINDOWS_64) return URLDecoder.decode(urlString.substring(urlString.indexOf('/') + 1), "UTF-8"); else return "/" + URLDecoder.decode(urlString.substring(urlString.indexOf('/') + 1), "UTF-8"); }
SilenceEngine.Platform platform = SilenceEngine.display.getPlatform();