PageRenderTime 242ms CodeModel.GetById 120ms app.highlight 2ms RepoModel.GetById 119ms app.codeStats 0ms

/TheElements/jni/saveload.h

http://thelements.googlecode.com/
C++ Header | 34 lines | 15 code | 5 blank | 14 comment | 0 complexity | b1b88fa1f6f4694bd9200039b6310095 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
18//Include the FILE type
19#include <stdio.h>
20//Include the global variables
21#include "app.h"
22//Include the global macros
23#include "macros.h"
24//Include points functions
25#include "points.h"
26//Include the initializer function
27#include "setup.h"
28
29int saver(int type);
30int loader(int type);
31void removeQuicksave(void);
32int loadDemoFile(void);
33
34#endif