src/authoring/gamestate/AuthoringStateLoader.java
public static File findStateFile(String gameName) {
		File gameDirectory = new File(GAME_FOLDER + gameName);
		File[] savedFiles = gameDirectory.listFiles(new FilenameFilter() {
			public boolean accept(File dir, String name) {
				return name.startsWith("Player");
			}
		});
		if (savedFiles.length == 0) {
			throw new AuthoringException(ERROR_MESSAGE, AuthoringAlert.SHOW);
		} else {
			return savedFiles[0];
		}
	}
/**
	 * Finds the correct Player.xml file to load based upon the name of the game.
	 * @param gameName the name of the game to load
	 */
Finds the correct Player.xml file to load based upon the name of the game.
@param gameName the name of the game to load
Finds the correct Player . xml file to load based upon the name of the game . @param gameName the name of the game to load
public static File findStateFile(String gameName) {
		File gameDirectory = new File(GAME_FOLDER + gameName);
		File[] savedFiles = gameDirectory.listFiles(new FilenameFilter() {
			public boolean accept(File dir, String name) {
				return name.startsWith("Player");
			}
		});
		if (savedFiles.length == 0) {
			throw new AuthoringException(ERROR_MESSAGE, AuthoringAlert.SHOW);
		} else {
			return savedFiles[0];
		}
	}
public static File findStateFile ( String gameName ) { File gameDirectory = new File ( GAME_FOLDER + gameName ) ; File [ ] savedFiles = gameDirectory . listFiles ( new FilenameFilter ( ) { public boolean accept ( File dir , String name ) { return name . startsWith ( "Player" ) ; } } ) ; if ( savedFiles . length == 0 ) { throw new AuthoringException ( ERROR_MESSAGE , AuthoringAlert . SHOW ) ; } else { return savedFiles [ 0 ] ; } }
Finds the correct Player.xml file to load based upon the name of the game.
Finds the correct Player . xml file to load based upon the name of the game .