diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/game.c | 7 | ||||
| -rw-r--r-- | src/client/image.c | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/client/game.c b/src/client/game.c index 8e0c30a..42a5868 100644 --- a/src/client/game.c +++ b/src/client/game.c @@ -14,6 +14,7 @@ #include "item.h" #include "shot.h" #include "arenaFile.h" +#include "my_path.h" #include "image.h" #include "layer.h" @@ -45,7 +46,8 @@ static void initGame() { home_director_create(); - + + path_init(); interface_init(); font_init(); layer_init(); @@ -77,6 +79,7 @@ static void initGame() void game_quit() { + interface_quit(); main_menu_quit(); @@ -106,6 +109,8 @@ void game_quit() audio_quit(); #endif + path_quit(); + DEBUG_MSG(_("Quitting TUXANCI...\n")); exit(0); diff --git a/src/client/image.c b/src/client/image.c index fa34760..b17e471 100644 --- a/src/client/image.c +++ b/src/client/image.c @@ -6,6 +6,7 @@ #include "main.h" #include "list.h" #include "storage.h" +#include "my_path.h" #include "interface.h" #include "image.h" @@ -39,12 +40,7 @@ static SDL_Surface *loadImage(const char *filename, int alpha) char str[STR_PATH_SIZE]; - - if (isFillPath(filename)) { - strcpy(str, filename); - } else { - sprintf(str, PATH_IMAGE "%s", filename); - } + path_set_prefix(str, STR_PATH_SIZE, PATH_PREFIX_IMAGE, filename); accessExistFile(str); |