summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-15 13:29:16 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-15 13:29:16 +0000
commitf06b86893e610276d1deac4c2dd3c0247d62b44d (patch)
treef4d24df364c33e437c4979d5ddea812129a40300 /src/main.cpp
parent192f17745eb2c3bba18b066f2d01ca771b3cd4d8 (diff)
downloadmana-f06b86893e610276d1deac4c2dd3c0247d62b44d.tar.gz
mana-f06b86893e610276d1deac4c2dd3c0247d62b44d.tar.bz2
mana-f06b86893e610276d1deac4c2dd3c0247d62b44d.tar.xz
mana-f06b86893e610276d1deac4c2dd3c0247d62b44d.zip
Updated layout and contents of FAQ a bit, fixed debug path and mouse rendering
in OpenGL mode, and some general cleanups.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 043be40d..0c79affe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -95,10 +95,6 @@ class InitWarningListener : public gcn::ActionListener {
}
} initWarningListener;
-void request_exit() {
- state = EXIT;
-}
-
/**
* Do all initialization stuff
*/
@@ -277,7 +273,7 @@ void init_engine()
playerset = new Spriteset(playerImg, 160, 120);
hairset = new Spriteset(hairImg, 40, 40);
- init_gui(graphics);
+ gui = new Gui(graphics);
state = LOGIN;
// initialize sound-engine and start playing intro-theme /-kth5
@@ -302,15 +298,18 @@ void init_engine()
}
/** Clear the engine */
-void exit_engine() {
+void exit_engine()
+{
config.write(dir);
delete[] dir;
- gui_exit();
+ delete gui;
+ delete graphics;
ResourceManager::deleteInstance();
}
/** Main */
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[])
+{
init_engine();
SDL_Event event;