PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/FallingSandpaper/jni/saveload.h

http://thelements.googlecode.com/
C++ Header | 37 lines | 18 code | 5 blank | 14 comment | 0 complexity | 1ef050f82b7b727c2f363ed747729e33 MD5 | raw file
 1/*
 2 * saveload.h
 3 * --------------------------
 4 * Declares the function definitions for saver
 5 * and loader, the two functions which save and
 6 * load an element setup. Also defines macros
 7 * for file locations, and includes needed headers.
 8 */
 9
10#ifndef SAVELOAD_H_INCLUDED
11#define SAVELOAD_H_INCLUDED
12
13//Define the file locations so that they can be easily changed
14#define SAVE_FILE "/sdcard/elementworks/save.txt"
15#define QUICK_SAVE_FILE "/sdcard/elementworks/quicksave.txt"
16#define DEMO_SAVE_FILE "/sdcard/elementworks/save2.txt"
17#define CUSTOM_ELEMENT_FILE "/sdcard/elementworks/customele.txt"
18
19//Include the FILE type
20#include <stdio.h>
21//Include the global variables
22#include "app.h"
23//Include the global macros
24#include "macros.h"
25//Include points functions
26#include "points.h"
27//Include the initializer function
28#include "setup.h"
29
30int saver(int type);
31int loader(int type);
32void removeQuicksave(void);
33int loadDemoFile(void);
34int loadCustomFile(void);
35int saveCustomFile(void);
36
37#endif