public void saveFile(File file) {
		System.err.println("Saving scene as " + file);

		if (scene.getTileset().isUnsaved()) {
			System.out.println("?? 2 " + (scene.getTileset() == gfx));
			PromptDialog.tell("Please save your tileset first.", "OK");
			return;
		}
		try {
			scene.saveScene(file);
			openFile = file;
			mainFrame.validate();
		} catch (Exception e) {
			PromptDialog.tell("Could not save: " + e, "OK");
			e.printStackTrace();
		}
	}