Skip to content

Commit

Permalink
Yet another place to find DOOM2.WAD
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 2, 2023
1 parent 1197db8 commit c7454e2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/d_iwad.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static const char *steam_install_subdirs[] =
"steamapps\\common\\Ultimate Doom\\base"
"steamapps\\common\\DOOM 3 BFG Edition\\base\\wads",
"steamapps\\common\\Final Doom\\base",
"steamapps\\common\\Master Levels of Doom\\doom2",
"steamapps\\common\\DOOMEternal\\base\\classicwads"
};

Expand Down
22 changes: 22 additions & 0 deletions src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,28 @@ char *sentencecase(const char *str)
return newstr;
}

bool isuppercase(const char *str)
{
const int len = (int)strlen(str);

for (int i = 1; i < len; i++)
if (islower(str[i]))
return false;

return true;
}

bool islowercase(const char *str)
{
const int len = (int)strlen(str);

for (int i = 1; i < len; i++)
if (isupper(str[i]))
return false;

return true;
}

char *commify(int64_t value)
{
char result[64];
Expand Down
2 changes: 2 additions & 0 deletions src/m_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ char *uppercase(const char *str);
char *lowercase(char *str);
char *titlecase(const char *str);
char *sentencecase(const char *str);
bool isuppercase(const char *str);
bool islowercase(const char *str);
char *commify(int64_t value);
char *commifystat(uint64_t value);
char *uncommify(const char *input);
Expand Down

0 comments on commit c7454e2

Please sign in to comment.