diff options
Diffstat (limited to 'saga/game.h')
-rw-r--r-- | saga/game.h | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/saga/game.h b/saga/game.h index 3e8a1642af..6f7efa6203 100644 --- a/saga/game.h +++ b/saga/game.h @@ -20,13 +20,8 @@ * $Header$ * */ -/* - Description: - - Game detection, general game parameters - Notes: -*/ +// Game detection, general game parameters #ifndef SAGA_GAME_H_ #define SAGA_GAME_H_ @@ -39,88 +34,60 @@ namespace Saga { #define R_GAME_ITE_LANG_PREFIX "ite_" #define R_GAME_LANG_EXT "lng" -/* Script lookup table entry sizes for game verification */ +// Script lookup table entry sizes for game verification #define R_SCR_LUT_ENTRYLEN_ITECD 22 #define R_SCR_LUT_ENTRYLEN_ITEDISK 16 typedef int (*R_GAME_VERIFYFUNC) (const char *); struct R_GAME_FILEDESC { - const char *gf_fname; uint16 gf_type; - }; struct R_GAMEDESC { - int gd_game_type; int gd_game_id; - const char *gd_title; - int gd_logical_w; int gd_logical_h; int gd_scene_h; - int gd_startscene; - R_GAME_RESOURCEDESC *gd_resource_desc; - int gd_filect; R_GAME_FILEDESC *gd_filedescs; - int gd_fontct; R_GAME_FONTDESC *gd_fontdescs; - R_GAME_SOUNDINFO *gd_soundinfo; - R_GAME_VERIFYFUNC gd_verifyf; - int gd_supported; - }; struct R_GAME_FILEDATA { - R_RSCFILE_CONTEXT *file_ctxt; - uint16 file_types; uint16 file_flags; - }; struct R_GAMEMODULE { - int game_init; int game_number; - R_GAMEDESC *gamedesc; - int g_skipintro; - char game_dir[R_MAXPATH]; char data_dir[R_MAXPATH]; - char game_language[R_GAME_LANGSTR_LIMIT]; - uint16 gfile_n; R_GAME_FILEDATA *gfile_data; - uint16 gd_fontct; R_GAME_FONTDESC *gd_fontdescs; - int err_n; const char *err_str; - }; -int LoadLanguage(void); - +int LoadLanguage(); int DetectGame(const char *game_dir, uint16 * game_n_p); - int LoadGame(const char *game_dir, uint16 game_n_p); - int Verify_ITEDEMO(const char *game_dir); int Verify_ITEDISK(const char *game_dir); int Verify_ITECD(const char *game_dir); @@ -129,5 +96,4 @@ int Verify_IHNMCD(const char *game_dit); } // End of namespace Saga -#endif /* R_GAME_H_ */ -/* end "r_game.h" */ +#endif |