summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-09-26 18:09:31 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-09-26 18:09:31 +0000
commit96cd54889ccfc98170e9e790e3179ad90c93eaf7 (patch)
treec4f7bce102154dddc6c2fdb71c7318eacb347f5c /src/main.cpp
parent41f57120092aaa4bdd061f54838728daba096a8f (diff)
downloadmana-client-96cd54889ccfc98170e9e790e3179ad90c93eaf7.tar.gz
mana-client-96cd54889ccfc98170e9e790e3179ad90c93eaf7.tar.bz2
mana-client-96cd54889ccfc98170e9e790e3179ad90c93eaf7.tar.xz
mana-client-96cd54889ccfc98170e9e790e3179ad90c93eaf7.zip
upcase bugfixes for gui-related things
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3741b680..b9b791ab 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,6 +25,8 @@
#include "./sound/sound.h"
#include "./graphic/graphic.h"
+#include <iostream>
+
/* Account infos */
int account_ID, session_ID1, session_ID2;
char sex, n_server, n_character;
@@ -54,7 +56,7 @@ 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");
@@ -85,16 +87,16 @@ void init_engine() {
buffer = create_bitmap(800, 600);
if(!buffer)
error("Not enough memory to create buffer");
+
graphic = load_datafile("./data/graphic/graphic.dat");
if(graphic==NULL)
error("Unable to load graphic datafile");
- playerset = (BITMAP*)graphic[PLAYERSET_BMP].dat;
+ playerset = (BITMAP*)graphic[PLAYERSET_BMP].dat;
emotions = load_datafile("./data/graphic/emotions.dat");
if(emotions==NULL)
error("Unable to load emotions datafile");
- init_gui(buffer, "./data/skin/aqua.skin");
-
+ init_gui(buffer, "./data/Skin/aqua.skin");
state = LOGIN;
}
@@ -108,8 +110,7 @@ void exit_engine() {
/** Main */
int main() {
- init_engine();
-
+ init_engine();
// initialize sound-engine and start playing intro-theme /-kth5
try{
if(get_config_int("settings", "sound", 0)==1)