summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-11-05 17:34:45 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-11-05 17:34:45 +0000
commit6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03 (patch)
tree6a454dd44479d287cbde80c2f02c4b2514f7fe3c /src/main.cpp
parent00192556ea8e4e8eb13e59b35abcd6d994368e22 (diff)
downloadmana-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.gz
mana-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.bz2
mana-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.tar.xz
mana-6c2e5c769c9e0150da3ee9a2d17ad4bbc5db1e03.zip
*** empty log message ***
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/main.cpp b/src/main.cpp
index abc67679..5411866e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,22 +2,22 @@
The Mana World
Copyright 2004 The Mana World Development Team
-
- This file is part of The Mana World.
-
- The Mana World 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
- any later version.
-
- The Mana World 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 The Mana World; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ This file is part of The Mana World.
+
+ The Mana World 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
+ any later version.
+
+ The Mana World 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 The Mana World; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -57,10 +57,12 @@ void request_exit() {
/** Do all initialization stuff */
void init_engine() {
- allegro_init();
+ allegro_init();
init_log();
set_close_button_callback(request_exit); // we should not use set_window_close_hook() since it's deprecated and might be gone in the future /-kth5
set_config_file("tmw.ini");
+ if(strcmp(get_config_string("system", "core_version", NULL), CORE_VERSION)!=0)
+ error("Wrong INI file");
#ifdef MACOSX
set_color_depth(32);
Init_2xSaI(32);