about summary refs log tree commit diff
path: root/path.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-29 14:00:25 -0400
committerJune McEnroe <june@causal.agency>2019-03-29 14:00:25 -0400
commitc3d2329dacec0a9bab036d4a605b5ab7e7b1b397 (patch)
tree0c979aff6536eda57682ebc95631b0e9477f18a2 /path.h
parentDocument dump(1) (diff)
downloadcards-c3d2329dacec0a9bab036d4a605b5ab7e7b1b397.tar.gz
cards-c3d2329dacec0a9bab036d4a605b5ab7e7b1b397.zip
Load king bitmaps in freecell
Diffstat (limited to 'path.h')
-rw-r--r--path.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/path.h b/path.h
index 05caa62..f3832d9 100644
--- a/path.h
+++ b/path.h
@@ -36,11 +36,6 @@ pathSearch(const char *base, const char *pref, const char **names, size_t len) {
 	return NULL;
 }
 
-static inline SDL_RWops *
-pathFind(const char *base, const char *pref, const char *name) {
-	return pathSearch(base, pref, &name, 1);
-}
-
 static inline SDL_RWops *pathCards(const char *base, const char *pref) {
 	const char *names[3] = { "CARDS.DLL", "SOL.EXE", "cards.dll" };
 	SDL_RWops *rw = pathSearch(base, pref, names, 3);
@@ -54,4 +49,9 @@ static inline SDL_RWops *pathCards(const char *base, const char *pref) {
 	return NULL;
 }
 
+static inline SDL_RWops *pathFreeCell(const char *base, const char *pref) {
+	const char *names[2] = { "FREECELL.EXE", "freecell.exe" };
+	return pathSearch(base, pref, names, 2);
+}
+
 #endif