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.

40 lines
1.1 KiB

/**
* @file init.h
*
* Interface of routines for initializing the environment, disable screen saver, load MPQ.
*/
#ifndef __INIT_H__
#define __INIT_H__
extern _SNETVERSIONDATA fileinfo;
extern int gbActive;
7 years ago
extern char diablo_exe_path[MAX_PATH];
extern HANDLE hellfire_mpq;
7 years ago
extern char patch_rt_mpq_path[MAX_PATH];
extern WNDPROC CurrentProc;
extern HANDLE diabdat_mpq;
7 years ago
extern char diabdat_mpq_path[MAX_PATH];
extern HANDLE patch_rt_mpq;
extern BOOLEAN screensaver_enabled_prev;
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 */
7 years ago
extern char gszVersionNumber[MAX_PATH];
extern char gszProductName[MAX_PATH];
#endif /* __INIT_H__ */