1
0
Fork 0
mirror of https://github.com/galaxyhaxz/devilution synced 2025-02-22 12:34:59 +00:00
devilution/2020_03_31/Source/init.h
PrisonOfMirrors b720183846 initial up
2020-11-28 18:24:54 -06:00

40 lines
1.3 KiB
C

//HEADER_GOES_HERE
#ifndef __INIT_H__
#define __INIT_H__
extern _SNETVERSIONDATA fileinfo;
extern int gbActive; // weak
extern char diablo_exe_path[260];
extern void *unused_mpq;
extern char patch_rt_mpq_path[260];
extern WNDPROC CurrentProc;
extern void *diabdat_mpq;
extern char diabdat_mpq_path[260];
extern void *patch_rt_mpq;
extern BOOL killed_mom_parent; // weak
extern _bool screensaver_enabled_prev;
void init_cleanup(BOOL show_cursor);
void init_run_office_from_start_menu();
void init_run_office(char *dir);
void init_disable_screensaver(_bool disable);
void init_create_window(int nCmdShow);
void init_kill_mom_parent();
HWND init_find_mom_parent();
void init_await_mom_parent_exit();
void init_archives();
void *init_test_access(char *mpq_path, char *mpq_name, char *reg_loc, int flags, _bool on_cd);
char *init_strip_trailing_slash(char *path);
BOOL init_read_test_file(char *pszPath, char *pszArchive, int flags, HANDLE *phArchive);
void init_get_file_info();
LRESULT CALLBACK MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void init_activate_window(HWND hWnd, BOOL bActive);
LRESULT __stdcall WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
WNDPROC SetWindowProc(WNDPROC NewProc);
/* data */
extern char gszVersionNumber[260];
extern char gszProductName[260];
#endif /* __INIT_H__ */