/* Copyright (c) 2002-2012 Croteam Ltd. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ // 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