1 /* 2 3 Copyright (C) 2015-2018 Night Dive Studios, LLC. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 */ 19 //==================================================================================== 20 // 21 // System Shock - ©1994-1995 Looking Glass Technologies, Inc. 22 // 23 // InitMac.h - Initialize Mac toolbox managers and setup the application's globals. 24 // 25 //==================================================================================== 26 27 #define kShockTicksFreq -14286 //-3571 28 29 //-------------------- 30 // Prototypes 31 //-------------------- 32 void InitMac(void); 33 void FailNIL(void *); 34 // Handle GetResourceFail(long id, short num); 35 void CheckConfig(void); 36 void ErrorDie(short stringnum); 37 void CleanupAndExit(void); 38 void SetupWindows(WindowPtr *mainWind); 39 void SetUpMenus(MenuHandle *theMenus, short numMenus); 40 void StringAlert(short stringnum); 41 void GetFolders(void); 42 void InstallShockTimers(void); 43 void RemoveShockTimers(void); 44 void StartShockTimer(void); 45 void StopShockTimer(void); 46 void HideMenuBar(void); 47 void ShowMenuBar(void); 48