~cadence/crumpet

a571e2cb21907dd0d057a5661fb6b2a643f4fe44 — Cadence Ember 8 months ago 375a8af
Treat installations as equivalent in autodetect
1 files changed, 3 insertions(+), 3 deletions(-)

M crumpet.py
M crumpet.py => crumpet.py +3 -3
@@ 110,9 110,9 @@ def autodetect_game_directory():
		if len(possible_matches) == 1:
			return possible_matches[0]
		# multiple matches: need to refine them
		# assume that the game is installed to a path with "Return To Wonderland"
		possible_matches = [line for line in possible_matches if "Return To Wonderland" in line]
		if len(possible_matches) == 1:
		# assume that the game is installed to a path ending with "/Return To Wonderland"
		possible_matches = [line for line in possible_matches if line.endswith("/Return To Wonderland")]
		if possible_matches:
			return possible_matches[0]
		# no more strategies for refining
		return None