mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-15 08:52:04 +00:00
7f52e6537b
IWAD. They are: * [Doom1.Autoload] * [Doom2.Autoload] * [Plutonia.Autoload] * [TNT.Autoload] * [HexenDK.Autoload] These are loaded after the more general game-specific [Doom.Autoload] and [Hexen.Autoload] sections if those are present. - Changed the banner texts for the Final Doom IWADs to identify them as Final Doom rather than as DOOM 2. I know this differs from the original behavior, but they're marketed as Final Doom, not Doom 2. SVN r582 (trunk)
59 lines
1.5 KiB
C
59 lines
1.5 KiB
C
// cmdlib.h
|
|
|
|
#ifndef __CMDLIB__
|
|
#define __CMDLIB__
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning(disable : 4244) // MIPS
|
|
#pragma warning(disable : 4136) // X86
|
|
#pragma warning(disable : 4051) // ALPHA
|
|
|
|
#pragma warning(disable : 4018) // signed/unsigned mismatch
|
|
#pragma warning(disable : 4305) // truncate from double to float
|
|
#endif
|
|
|
|
#include "doomtype.h"
|
|
#include "zstring.h"
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <ctype.h>
|
|
#include <stdarg.h>
|
|
|
|
// the dec offsetof macro doesnt work very well...
|
|
#define myoffsetof(type,identifier) ((size_t)&((type *)0)->identifier)
|
|
|
|
int Q_filelength (FILE *f);
|
|
bool FileExists (const char *filename);
|
|
|
|
extern char progdir[1024];
|
|
|
|
void FixPathSeperator (char *path);
|
|
static void inline FixPathSeperator (FString &path) { path.ReplaceChars('\\', '/'); }
|
|
|
|
void DefaultExtension (char *path, const char *extension);
|
|
void DefaultExtension (FString &path, const char *extension);
|
|
|
|
FString ExtractFilePath (const char *path);
|
|
FString ExtractFileBase (const char *path, bool keep_extension=false);
|
|
|
|
int ParseHex (char *str);
|
|
int ParseNum (char *str);
|
|
bool IsNum (char *str); // [RH] added
|
|
|
|
char *copystring(const char *s);
|
|
void ReplaceString (char **ptr, const char *str);
|
|
|
|
bool CheckWildcards (const char *pattern, const char *text);
|
|
|
|
void FormatGUID (char *text, const GUID &guid);
|
|
|
|
const char *myasctime ();
|
|
|
|
void strbin (char *str);
|
|
|
|
void CreatePath(const char * fn);
|
|
|
|
#endif
|