https://github.com/libsdl-org/Maelstrom/commit/f0b7d1be2ec0a1e8c1a5524b1f8d1af6a3bc047e
From f0b7d1be2ec0a1e8c1a5524b1f8d1af6a3bc047e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 31 Oct 2011 06:51:44 -0400
Subject: [PATCH] Fixed more warnings...
---
init.cpp | 7 +------
init.h | 29 +++++++++++++++++++++++++++++
main.cpp | 4 +---
3 files changed, 31 insertions(+), 9 deletions(-)
create mode 100644 init.h
diff --git a/init.cpp b/init.cpp
index 5f56283e..eb02ced4 100644
--- a/init.cpp
+++ b/init.cpp
@@ -28,6 +28,7 @@
#include "Maelstrom_Globals.h"
#include "load.h"
+#include "init.h"
#include "colortable.h"
#include "fastrand.h"
#include "MaelstromUI.h"
@@ -81,12 +82,6 @@ static int LoadSprite(Mac_Resource *spriteres,
static int LoadSmallSprite(Mac_Resource *spriteres,
BlitPtr *theBlit, int baseID, int numFrames);
-
-/* Put up an Ambrosia Software splash screen */
-void DoSplash(void)
-{
-}
-
/* ----------------------------------------------------------------- */
/* -- Draw a loading status bar */
diff --git a/init.h b/init.h
new file mode 100644
index 00000000..e1a318ac
--- /dev/null
+++ b/init.h
@@ -0,0 +1,29 @@
+/*
+ Maelstrom: Open Source version of the classic game by Ambrosia Software
+ Copyright (C) 1997-2011 Sam Lantinga
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ Sam Lantinga
+ slouken@libsdl.org
+*/
+
+#ifndef _init_h
+#define _init_h
+
+extern int DoInitializations(Uint32 window_flags, Uint32 render_flags);
+extern void CleanUp(void);
+
+#endif /* _init_h */
diff --git a/main.cpp b/main.cpp
index 8b37bdc8..bda8f376 100644
--- a/main.cpp
+++ b/main.cpp
@@ -34,6 +34,7 @@
#include "Maelstrom_Globals.h"
#include "load.h"
+#include "init.h"
#include "fastrand.h"
#include "netlogic/about.h"
#include "main.h"
@@ -44,9 +45,6 @@
#include "screenlib/UIElementLabel.h"
#include "UIElementKeyButton.h"
-/* External functions used in this file */
-extern int DoInitializations(Uint32 window_flags, Uint32 render_flags); /* init.cpp */
-extern void CleanUp(void);
static const char *Version =
"Maelstrom v1.4.3 (GPL version 4.0.0) -- 10/08/2011 by Sam Lantinga\n";