2016-05-04 19:24:41 +02:00
|
|
|
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
2014-04-02 01:31:55 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
2015-08-04 22:39:44 +02:00
|
|
|
*
|
2016-05-04 19:24:41 +02:00
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
2015-08-04 22:39:44 +02:00
|
|
|
*
|
2014-04-02 01:31:55 +02:00
|
|
|
* OpenRCT2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2016-05-04 19:24:41 +02:00
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
2014-04-02 01:31:55 +02:00
|
|
|
*****************************************************************************/
|
2016-05-04 19:24:41 +02:00
|
|
|
#pragma endregion
|
2015-08-04 22:39:44 +02:00
|
|
|
|
2014-04-10 01:22:57 +02:00
|
|
|
#ifndef _RCT2_H_
|
|
|
|
#define _RCT2_H_
|
2014-04-02 01:31:55 +02:00
|
|
|
|
2016-11-30 12:07:10 +01:00
|
|
|
#include "common.h"
|
2014-10-06 18:36:58 +02:00
|
|
|
|
2016-05-12 23:57:40 +02:00
|
|
|
typedef struct rct2_install_info {
|
2015-02-11 23:17:49 +01:00
|
|
|
uint32 installLevel;
|
|
|
|
char title[260];
|
|
|
|
char path[260];
|
|
|
|
uint32 var_20C;
|
|
|
|
uint8 pad_210[256];
|
|
|
|
char expansionPackNames[16][128];
|
|
|
|
uint32 activeExpansionPacks; //0xB10
|
2016-06-02 23:22:08 +02:00
|
|
|
} rct2_install_info;
|
2015-02-11 23:17:49 +01:00
|
|
|
|
2014-04-03 01:22:33 +02:00
|
|
|
enum {
|
2014-12-14 22:02:38 +01:00
|
|
|
// Although this is labeled a flag it actually means when
|
|
|
|
// zero the screen is in playing mode.
|
2014-04-03 01:22:33 +02:00
|
|
|
SCREEN_FLAGS_PLAYING = 0,
|
|
|
|
SCREEN_FLAGS_TITLE_DEMO = 1,
|
|
|
|
SCREEN_FLAGS_SCENARIO_EDITOR = 2,
|
|
|
|
SCREEN_FLAGS_TRACK_DESIGNER = 4,
|
|
|
|
SCREEN_FLAGS_TRACK_MANAGER = 8,
|
|
|
|
};
|
|
|
|
|
2014-11-23 17:28:23 +01:00
|
|
|
#define SCREEN_FLAGS_EDITOR (SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)
|
|
|
|
|
2014-04-04 20:59:32 +02:00
|
|
|
enum {
|
|
|
|
PATH_ID_G1,
|
2015-08-18 02:48:18 +02:00
|
|
|
PATH_ID_PLUGIN,
|
2014-04-04 20:59:32 +02:00
|
|
|
PATH_ID_CSS1,
|
|
|
|
PATH_ID_CSS2,
|
|
|
|
PATH_ID_CSS4,
|
2014-04-08 01:05:05 +02:00
|
|
|
PATH_ID_CSS5,
|
|
|
|
PATH_ID_CSS6,
|
|
|
|
PATH_ID_CSS7,
|
|
|
|
PATH_ID_CSS8,
|
|
|
|
PATH_ID_CSS9,
|
|
|
|
PATH_ID_CSS11,
|
|
|
|
PATH_ID_CSS12,
|
|
|
|
PATH_ID_CSS13,
|
|
|
|
PATH_ID_CSS14,
|
|
|
|
PATH_ID_CSS15,
|
|
|
|
PATH_ID_CSS3,
|
|
|
|
PATH_ID_CSS17,
|
|
|
|
PATH_ID_CSS18,
|
|
|
|
PATH_ID_CSS19,
|
|
|
|
PATH_ID_CSS20,
|
|
|
|
PATH_ID_CSS21,
|
|
|
|
PATH_ID_CSS22,
|
|
|
|
PATH_ID_SCORES,
|
|
|
|
PATH_ID_CSS23,
|
|
|
|
PATH_ID_CSS24,
|
|
|
|
PATH_ID_CSS25,
|
|
|
|
PATH_ID_CSS26,
|
|
|
|
PATH_ID_CSS27,
|
|
|
|
PATH_ID_CSS28,
|
|
|
|
PATH_ID_CSS29,
|
|
|
|
PATH_ID_CSS30,
|
|
|
|
PATH_ID_CSS31,
|
|
|
|
PATH_ID_CSS32,
|
|
|
|
PATH_ID_CSS33,
|
|
|
|
PATH_ID_CSS34,
|
|
|
|
PATH_ID_CSS35,
|
|
|
|
PATH_ID_CSS36,
|
|
|
|
PATH_ID_CSS37,
|
|
|
|
PATH_ID_CSS38,
|
|
|
|
PATH_ID_CUSTOM1,
|
|
|
|
PATH_ID_CUSTOM2,
|
|
|
|
PATH_ID_CSS39,
|
|
|
|
PATH_ID_CSS40,
|
|
|
|
PATH_ID_CSS41,
|
|
|
|
PATH_ID_SIXFLAGS_MAGICMOUNTAIN,
|
|
|
|
PATH_ID_CSS42,
|
|
|
|
PATH_ID_CSS43,
|
|
|
|
PATH_ID_CSS44,
|
|
|
|
PATH_ID_CSS45,
|
2014-06-19 13:52:34 +02:00
|
|
|
PATH_ID_CSS46,
|
2015-02-06 23:35:08 +01:00
|
|
|
PATH_ID_CSS50,
|
2014-06-19 13:52:34 +02:00
|
|
|
PATH_ID_END
|
2014-06-15 15:10:35 +02:00
|
|
|
};
|
2014-04-08 01:05:05 +02:00
|
|
|
|
2016-04-19 23:09:42 +02:00
|
|
|
enum {
|
|
|
|
FILE_EXTENSION_UNKNOWN,
|
|
|
|
FILE_EXTENSION_DAT,
|
|
|
|
FILE_EXTENSION_SC4,
|
|
|
|
FILE_EXTENSION_SV4,
|
|
|
|
FILE_EXTENSION_TD4,
|
|
|
|
FILE_EXTENSION_SC6,
|
|
|
|
FILE_EXTENSION_SV6,
|
|
|
|
FILE_EXTENSION_TD6,
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-01-03 16:25:17 +01:00
|
|
|
#define RCT2_MAX_STATIONS 4
|
|
|
|
|
2016-01-09 01:34:34 +01:00
|
|
|
extern const char * const RCT2FilePaths[PATH_ID_END];
|
2014-06-19 13:52:34 +02:00
|
|
|
|
2015-07-29 04:06:51 +02:00
|
|
|
extern uint32 gCurrentDrawCount;
|
|
|
|
|
2016-04-23 12:16:46 +02:00
|
|
|
extern uint8 gScreenFlags;
|
|
|
|
extern uint32 gScreenAge;
|
|
|
|
extern uint8 gSavePromptMode;
|
2016-04-24 01:36:39 +02:00
|
|
|
extern sint32 gScreenWidth;
|
|
|
|
extern sint32 gScreenHeight;
|
2016-04-23 12:16:46 +02:00
|
|
|
|
2016-09-18 23:25:49 +02:00
|
|
|
extern char gRCT2AddressAppPath[];
|
2016-06-19 23:47:06 +02:00
|
|
|
extern char gRCT2AddressSavedGamesPath[];
|
|
|
|
extern char gRCT2AddressSavedGamesPath2[];
|
|
|
|
extern char gRCT2AddressScenariosPath[];
|
|
|
|
extern char gRCT2AddressLandscapesPath[];
|
|
|
|
extern char gRCT2AddressObjectDataPath[];
|
|
|
|
extern char gRCT2AddressTracksPath[];
|
|
|
|
|
2016-09-10 13:45:33 +02:00
|
|
|
bool rct2_init();
|
2016-10-03 19:14:34 +02:00
|
|
|
int rct2_init_directories();
|
|
|
|
int rct2_startup_checks();
|
2016-01-15 16:23:53 +01:00
|
|
|
void rct2_dispose();
|
2014-10-09 15:31:51 +02:00
|
|
|
void rct2_update();
|
2016-09-26 04:24:29 +02:00
|
|
|
void substitute_path(char *dest, size_t size, const char *path, const char *filename);
|
2014-06-19 13:51:54 +02:00
|
|
|
int check_mutex();
|
2014-11-23 00:30:03 +01:00
|
|
|
int check_file_paths();
|
|
|
|
int check_file_path(int pathId);
|
|
|
|
int check_files_integrity();
|
2014-06-15 15:10:35 +02:00
|
|
|
const char *get_file_path(int pathId);
|
2014-05-24 01:00:58 +02:00
|
|
|
void rct2_quit();
|
2014-04-04 20:59:32 +02:00
|
|
|
|
2016-03-05 13:20:02 +01:00
|
|
|
bool rct2_open_file(const char *path);
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2016-04-19 23:09:42 +02:00
|
|
|
uint32 get_file_extension_type(const utf8 *path);
|
2016-12-11 13:10:35 +01:00
|
|
|
void rct2_copy_original_user_files_over();
|
2016-04-19 23:09:42 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-04-21 11:27:48 +02:00
|
|
|
#endif
|