From c3d2329dacec0a9bab036d4a605b5ab7e7b1b397 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 29 Mar 2019 14:00:25 -0400 Subject: Load king bitmaps in freecell --- path.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'path.h') 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 -- cgit 1.4.1