/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */ // Game.cpp : Defines the initialization routines for the DLL. // #include "stdafx.h" #include "Game.h" #include // for _mkdir() #include #include #include #include #include #include #include #include "Camera.h" #include "LCDDrawing.h" extern FLOAT con_fHeightFactor = 0.5f; extern FLOAT con_tmLastLines = 5.0f; extern INDEX con_bTalk = 0; CTimerValue _tvMenuQuickSave(0I64); // used filenames CTFileName fnmPersistentSymbols = CTString("Scripts\\PersistentSymbols.ini"); CTFileName fnmStartupScript = CTString("Scripts\\Game_startup.ini"); CTFileName fnmConsoleHistory = CTString("Temp\\ConsoleHistory.txt"); CTFileName fnmCommonControls = CTString("Controls\\System\\Common.ctl"); // force dependency for player class DECLARE_CTFILENAME( fnmPlayerClass, "Classes\\Player.ecl"); #define MAX_HIGHSCORENAME 16 #define MAX_HIGHSCORETABLESIZE ((MAX_HIGHSCORENAME+1+sizeof(INDEX)*4)*HIGHSCORE_COUNT)*2 UBYTE _aubHighScoreBuffer[MAX_HIGHSCORETABLESIZE]; UBYTE _aubHighScorePacked[MAX_HIGHSCORETABLESIZE]; // controls used for all commands not belonging to any particular player static CControls _ctrlCommonControls; // array for keeping all frames' times static CStaticStackArray