diff options
author | June McEnroe <june@causal.agency> | 2019-03-29 14:00:25 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-03-29 14:00:25 -0400 |
commit | c3d2329dacec0a9bab036d4a605b5ab7e7b1b397 (patch) | |
tree | 0c979aff6536eda57682ebc95631b0e9477f18a2 /path.h | |
parent | Document dump(1) (diff) | |
download | cards-c3d2329dacec0a9bab036d4a605b5ab7e7b1b397.tar.gz cards-c3d2329dacec0a9bab036d4a605b5ab7e7b1b397.zip |
Load king bitmaps in freecell
Diffstat (limited to '')
-rw-r--r-- | path.h | 10 |
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 |