forked from github/server
fix a FIXME: include gamedata.h directly, not through save.h
This commit is contained in:
parent
4dc9b737de
commit
01ecc72f2d
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue