/* Copyright (C) 2018 Parallel Realities 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. */ #include "../common.h" #include "../json/cJSON.h" #include "SDL2/SDL_image.h" #include "SDL2/SDL_mixer.h" #include "SDL2/SDL_ttf.h" #include "locale.h" extern char *buildFormattedString(const char *format, ...); extern void createSaveFolder(void); extern void destroyGame(void); extern void destroyLookups(void); extern void destroyTextures(void); extern int fileExists(const char *filename); extern char *getLookupName(const char *prefix, long num); extern void initAtlas(void); extern void initBackground(void); extern void initEntityFactory(void); extern void initFonts(void); extern void initGame(void); extern void initGraphics(void); extern void initSounds(void); extern void initSprites(void); extern void initStats(void); extern void initStrings(void); extern void initTextures(void); extern void initTrophies(void); extern void initWidgets(void); extern long lookup(const char *name); extern void prepareScene(void); extern void presentScene(void); extern char *readFile(const char *filename); extern void setLanguage(char *applicationName, char *languageCode); extern int writeFile(const char *filename, const char *data); extern App app;