/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. #ifndef SAVELOAD_H_INCLUDED
  10. #define SAVELOAD_H_INCLUDED
  11. //Define the file locations so that they can be easily changed
  12. #define SAVE_FILE "/sdcard/elementworks/save.txt"
  13. #define QUICK_SAVE_FILE "/sdcard/elementworks/quicksave.txt"
  14. #define DEMO_SAVE_FILE "/sdcard/elementworks/save2.txt"
  15. //Include the FILE type
  16. #include <stdio.h>
  17. //Include the global variables
  18. #include "app.h"
  19. //Include the global macros
  20. #include "macros.h"
  21. //Include points functions
  22. #include "points.h"
  23. //Include the initializer function
  24. #include "setup.h"
  25. int saver(int type);
  26. int loader(int type);
  27. void removeQuicksave(void);
  28. int loadDemoFile(void);
  29. #endif