23 #ifndef BAGEL_BAGLIB_BAGEL_H 24 #define BAGEL_BAGLIB_BAGEL_H 26 #include "bagel/boflib/app.h" 27 #include "bagel/boflib/gui/window.h" 28 #include "bagel/boflib/options.h" 29 #include "bagel/boflib/error.h" 30 #include "bagel/boflib/list.h" 31 #include "bagel/boflib/string.h" 32 #include "bagel/boflib/vhash_table.h" 39 #define HASH_TABLE_SIZE 131 40 #define MAX_APP_NAME 128 41 #define PATH_DELIMETER "/" 44 #define BAG_INSTALL_DEFAULT 0 46 #define HOMEDIR_TOKEN "$SBARDIR" 48 #define CURRSDEV_TOKEN "$CURRENT_SDEV" 49 #define PREVSDEV_TOKEN "$PREVIOUS_SDEV" 52 #define DEFAULT_CHROMA_COLOR 1 54 extern void fixPathName(CBofString &s);
62 const char *_gameName;
63 const char *_gamePath;
64 const char *_optionFile;
65 const char *_saveGameFile;
82 void registerGame(
const BagelReg *gameReg);
90 ErrorCode initialize()
override;
96 ErrorCode runApp()
override;
102 ErrorCode shutdown()
override;
111 ErrorCode setOption(
const char *section,
const char *option,
const char *stringValue);
120 ErrorCode setOption(
const char *section,
const char *option,
int intValue);
131 ErrorCode getOption(
const char *section,
const char *option,
char *stringValue,
const char *defaultValue, uint32 size);
141 ErrorCode getOption(
const char *section,
const char *option,
int *intValue,
int defaultValue);
151 ErrorCode getOption(
const char *section,
const char *option,
bool *boolValue,
int defaultValue);
153 void setAppName(
const char *newAppName)
override {
161 static CBagel *getBagApp() {
162 return (
CBagel *)_pBofApp;
165 int getChromaColor() {
166 return DEFAULT_CHROMA_COLOR;
175 ErrorCode verifyCDInDrive(
int diskId,
const char *waveFile);
177 static void showNextCDDialog(
CBofWindow *parentWin,
int diskId);
180 return _cacheFileList;
188 ErrorCode initLocalFilePaths();
193 int _numRetries = 20;
194 int _installCode = 0;
Definition: master_win.h:66
Definition: vhash_table.h:31
void strcpy_s(char *dst, size_t size, const char *src)