public static String getManipulatedMapScript(File scriptFile) throws IOException, MapFormatException { FileInputStream r = new FileInputStream(scriptFile); byte[] bytes = new byte[(int) scriptFile.length()]; r.read(bytes); r.close(); String mapScript = ScriptInjector.inject(new String(bytes)); return mapScript; }
public static String getManipulatedMapScript(MoPaQ m) throws MapFormatException { String mapScript = ScriptInjector.inject(new String(m.returnFileByName("MapScript.galaxy"))); return mapScript; }