23 #ifndef BAGEL_BAGLIB_BAGEL_H 24 #define BAGEL_BAGLIB_BAGEL_H 26 #include "bagel/spacebar/boflib/app.h" 27 #include "bagel/spacebar/boflib/gui/window.h" 28 #include "bagel/spacebar/boflib/options.h" 29 #include "bagel/boflib/error.h" 30 #include "bagel/spacebar/boflib/list.h" 31 #include "bagel/boflib/string.h" 32 #include "bagel/spacebar/boflib/vhash_table.h" 40 #define HASH_TABLE_SIZE 131 41 #define MAX_APP_NAME 128 42 #define PATH_DELIMETER "/" 45 #define BAG_INSTALL_DEFAULT 0 47 #define HOMEDIR_TOKEN "$SBARDIR" 49 #define CURRSDEV_TOKEN "$CURRENT_SDEV" 50 #define PREVSDEV_TOKEN "$PREVIOUS_SDEV" 53 #define DEFAULT_CHROMA_COLOR 1 61 const char *_gameName;
62 const char *_gamePath;
63 const char *_optionFile;
64 const char *_saveGameFile;
81 void registerGame(
const BagelReg *gameReg);
89 ErrorCode initialize()
override;
95 ErrorCode runApp()
override;
101 ErrorCode shutdown()
override;
110 ErrorCode setOption(
const char *section,
const char *option,
const char *stringValue);
119 ErrorCode setOption(
const char *section,
const char *option,
int intValue);
130 ErrorCode getOption(
const char *section,
const char *option,
char *stringValue,
const char *defaultValue, uint32 size);
140 ErrorCode getOption(
const char *section,
const char *option,
int *intValue,
int defaultValue);
150 ErrorCode getOption(
const char *section,
const char *option,
bool *boolValue,
int defaultValue);
152 void setAppName(
const char *newAppName)
override {
160 static CBagel *getBagApp() {
161 return (
CBagel *)_pBofApp;
164 int getChromaColor() {
165 return DEFAULT_CHROMA_COLOR;
174 ErrorCode verifyCDInDrive(
int diskId,
const char *waveFile);
176 static void showNextCDDialog(
CBofWindow *parentWin,
int diskId);
179 return _cacheFileList;
187 ErrorCode initLocalFilePaths();
192 int _numRetries = 20;
193 int _installCode = 0;
Definition: vhash_table.h:32
Definition: master_win.h:67
void strcpy_s(char *dst, size_t size, const char *src)