Skip to content

Commit

Permalink
Blood: Add workaround for Cryptic Passage art naming in Fresh Supply …
Browse files Browse the repository at this point in the history
…data

Fixes existing installs and the GOG version.
  • Loading branch information
Hendricks266 committed Nov 21, 2023
1 parent 8809862 commit c6a7ed0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions source/blood/src/blood.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1658,8 +1658,13 @@ int app_main(int argc, char const * const * argv)

G_LoadGroups(!bNoAutoLoad && !gSetup.noautoload);

//if (!g_useCwd)
// G_CleanupSearchPaths();
if (!g_useCwd)
{
G_CleanupSearchPaths();

if (strcmp(pINISelected->zName, "CRYPTIC.INI"))
removesearchpaths_withuser(SEARCHPATH_CRYPTIC);
}

LOG_F(INFO, "Initializing OSD...");

Expand Down
2 changes: 1 addition & 1 deletion source/blood/src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int32_t Blood_Add_FS(char * const buf, size_t const size, size_t const ch
buf[charsWritten] = '\0';
int32_t const addedmain = addsearchpath(buf);
Bsnprintf(buf + charsWritten, size - charsWritten, "/addons/Cryptic Passage");
addsearchpath(buf);
addsearchpath_user(buf, SEARCHPATH_CRYPTIC);
return addedmain;
}
#endif
Expand Down
1 change: 1 addition & 0 deletions source/blood/src/common_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ enum BLOOD_GLOBALFLAGS {

enum searchpathtypes_t {
SEARCHPATH_REMOVE = 1<<0,
SEARCHPATH_CRYPTIC = 1<<1,
};

extern char *g_grpNamePtr;
Expand Down

0 comments on commit c6a7ed0

Please sign in to comment.