public void loadProgram(String title) { currentTitle = title; try { spaceProgram = (SpaceProgram)parser.readFile(currentSpaceProgramFile); } catch { spaceProgram = SpaceProgram.generate(); } }
public void loadSettings() { try { settings = (Settings)parser.readFile("settings.cfg"); } catch { settings = new Settings(); } settings.changed = false; Difficulty.init(settings.difficulty); }