30 #ifndef AGS_SHARED_GAME_MAIN_GAME_FILE_H 31 #define AGS_SHARED_GAME_MAIN_GAME_FILE_H 33 #include "common/std/functional.h" 34 #include "common/std/memory.h" 35 #include "common/std/set.h" 36 #include "common/std/vector.h" 37 #include "ags/shared/core/platform.h" 38 #include "ags/shared/ac/game_version.h" 39 #include "ags/shared/ac/view.h" 40 #include "ags/shared/game/plugin_info.h" 41 #include "ags/shared/script/cc_script.h" 42 #include "ags/shared/util/error.h" 43 #include "ags/shared/util/stream.h" 44 #include "ags/shared/util/string.h" 45 #include "ags/shared/util/version.h" 49 struct GameSetupStruct;
56 enum MainGameFileErrorType {
58 kMGFErr_FileOpenFailed,
59 kMGFErr_SignatureFailed,
61 kMGFErr_FormatVersionTooOld,
62 kMGFErr_FormatVersionNotSupported,
63 kMGFErr_CapsNotSupported,
64 kMGFErr_InvalidNativeResolution,
65 kMGFErr_TooManySprites,
66 kMGFErr_InvalidPropertySchema,
67 kMGFErr_InvalidPropertyValues,
68 kMGFErr_CreateGlobalScriptFailed,
69 kMGFErr_CreateDialogScriptFailed,
70 kMGFErr_CreateScriptModuleFailed,
71 kMGFErr_GameEntityFailed,
72 kMGFErr_PluginDataFmtNotSupported,
73 kMGFErr_PluginDataSizeTooLarge,
74 kMGFErr_ExtListFailed,
78 String GetMainGameFileErrorText(MainGameFileErrorType err);
80 typedef TypedCodeError<MainGameFileErrorType, GetMainGameFileErrorText> MainGameFileError;
81 typedef ErrorHandle<MainGameFileError> HGameFileError;
87 static const char *DefaultFilename_v3;
88 static const char *DefaultFilename_v2;
90 static const char *Signature;
95 GameDataVersion DataVersion;
141 bool IsMainGameLibrary(
const String &filename);
Definition: achievements_tables.h:27
Definition: asset_manager.h:78
Definition: main_game_file.h:85
Definition: game_setup_struct.h:53
Definition: main_game_file.h:112