aboutsummaryrefslogtreecommitdiff
path: root/src/Files.h
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-22 10:25:15 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-22 10:25:15 +0700
commitf842bf6f2544457ecd488157a74dba8f8a2ea1c4 (patch)
tree39222d031e4e6bd802d48a12f215a16ddc262a31 /src/Files.h
parent325dca9f212f9fd44cd10a8180529970c7a08c72 (diff)
downloadblackshades-f842bf6f2544457ecd488157a74dba8f8a2ea1c4.tar.gz
Remove Mac OS 9 specific code
Except for MacInput, which is used for all keys unfortunately.
Diffstat (limited to 'src/Files.h')
-rw-r--r--src/Files.h40
1 files changed, 1 insertions, 39 deletions
diff --git a/src/Files.h b/src/Files.h
index 01ea9da..b743e2b 100644
--- a/src/Files.h
+++ b/src/Files.h
@@ -10,26 +10,10 @@
#include <cmath>
#include <iostream>
#include <fstream>
-#ifdef OS9
-#include "gl.h" // Header File For The OpenGL32 Library
-#include "glu.h" // Header File For The GLu32 Library
-#include "tk.h" // Header File For The Glaux Library
-#else
#include <GL/gl.h>
#include <GL/glu.h>
-#endif
-#ifdef OS9
-#include <Sound.h>
-#include <Resources.h>
-#include "AGL_DSp.h" // Header for OpenGL and DrawSprocket Functions
-#include "Alerts.h" // Header for Dialogs and alerts for this application
-#endif
-#include "MacInput.h" // Header for Special Mac Input functions
-#ifdef OS9
-#include "glm.h"
-#include <TextUtils.h>
-#endif
+#include "MacInput.h" // Header for Special Mac Input functions
#include "Support.h"
#define FILE_STRINGS 130
@@ -72,32 +56,10 @@ class Files
public:
char szSavedGameName[FILE_NAME_SIZE + 1];
short sSavedGameVolume;
-#ifdef OS9
- SFReply sfReply;
- Boolean bGameSaved;
-#endif
-#ifdef OS9
- short sFile;
-#else
int sFile;
-#endif
-#ifdef OS9
- short OpenFile(Str255 Name);
-#else
int OpenFile(Str255 Name);
Files() : sFile(-1) { }
-#endif
-
-#ifdef OS9
- short PromptForSaveAS( short sPromptID,
- short sNameID,
- Str255 str255NamePrompt,
- OSType osTypeCreator,
- OSType osTypeType,
- SFReply *psfReply );
- short OpenNewFile( SFReply *psfReply, OSType osTypeCreator, OSType osTypeType );
-#endif
short OpenSavedGame(Str255 Name);
short OpenFileDialog();
void LoadNamedMap(Str255 Name);