You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
/** |
|
* @file init.h |
|
* |
|
* Interface of routines for initializing the environment, disable screen saver, load MPQ. |
|
*/ |
|
#ifndef __INIT_H__ |
|
#define __INIT_H__ |
|
|
|
DEVILUTION_BEGIN_NAMESPACE |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
extern _SNETVERSIONDATA fileinfo; |
|
extern int gbActive; |
|
extern char diablo_exe_path[MAX_PATH]; |
|
extern HANDLE hellfire_mpq; |
|
extern char patch_rt_mpq_path[MAX_PATH]; |
|
extern WNDPROC CurrentProc; |
|
extern HANDLE diabdat_mpq; |
|
extern char diabdat_mpq_path[MAX_PATH]; |
|
extern HANDLE patch_rt_mpq; |
|
extern BOOLEAN screensaver_enabled_prev; |
|
#ifdef HELLFIRE |
|
extern char hellfire_mpq_path[MAX_PATH]; |
|
extern char hfmonk_mpq_path[MAX_PATH]; |
|
extern char hfbard_mpq_path[MAX_PATH]; |
|
extern char hfbarb_mpq_path[MAX_PATH]; |
|
extern char hfmusic_mpq_path[MAX_PATH]; |
|
extern char hfvoice_mpq_path[MAX_PATH]; |
|
extern char hfopt1_mpq_path[MAX_PATH]; |
|
extern char hfopt2_mpq_path[MAX_PATH]; |
|
extern HANDLE hfmonk_mpq; |
|
extern HANDLE hfbard_mpq; |
|
extern HANDLE hfbarb_mpq; |
|
extern HANDLE hfmusic_mpq; |
|
extern HANDLE hfvoice_mpq; |
|
extern HANDLE hfopt1_mpq; |
|
extern HANDLE hfopt2_mpq; |
|
#endif |
|
|
|
void init_cleanup(); |
|
void init_disable_screensaver(BOOLEAN disable); |
|
void init_create_window(); |
|
void init_archives(); |
|
HANDLE init_test_access(char *mpq_path, char *mpq_name, char *reg_loc, int flags, int fs); |
|
void init_get_file_info(); |
|
LRESULT MainWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); |
|
void init_activate_window(HWND hWnd, BOOL bActive); |
|
WNDPROC SetWindowProc(WNDPROC NewProc); |
|
|
|
extern BOOL was_window_init; /** defined in dx.cpp */ |
|
|
|
/* rdata */ |
|
|
|
/* data */ |
|
|
|
extern char gszVersionNumber[MAX_PATH]; |
|
extern char gszProductName[MAX_PATH]; |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
DEVILUTION_END_NAMESPACE |
|
|
|
#endif /* __INIT_H__ */
|
|
|