fix a FIXME: include gamedata.h directly, not through save.h

This commit is contained in:
Enno Rehling 2016-04-09 18:22:20 +02:00
parent 4dc9b737de
commit 01ecc72f2d
4 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ without prior permission by the authors of Eressea.
#include <kernel/save.h>
#include <kernel/version.h>
#include <util/gamedata.h>
#include <util/log.h>
#include <storage.h>

View File

@ -39,6 +39,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <util/bsdstring.h>
#include <util/event.h>
#include <util/functions.h>
#include <util/gamedata.h>
#include <util/language.h>
#include <util/log.h>
#include <quicklist.h>

View File

@ -40,6 +40,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <util/base36.h>
#include <util/bsdstring.h>
#include <util/event.h>
#include <util/gamedata.h>
#include <util/goodies.h>
#include <util/lists.h>
#include <util/language.h>

View File

@ -20,7 +20,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define H_KRNL_SAVE
#include <stream.h>
#include <util/gamedata.h> // FIXME: eliminate include dependency from this file
#ifdef __cplusplus
extern "C" {
#endif
@ -78,8 +77,8 @@ extern "C" {
void create_backup(char *file);
int write_game(gamedata *data);
int read_game(gamedata *data);
int write_game(struct gamedata *data);
int read_game(struct gamedata *data);
/* test-only functions that give access to internal implementation details (BAD) */
void _test_write_password(struct gamedata *data, const struct faction *f);