saveload.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. * Copyright (C) 1999 Charles Goetzman
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. // Prototypes for saveload.cpp
  23. #ifndef __SAVELOAD_H
  24. #define __SAVELOAD_H
  25. #include <_null.h>
  26. //Returns 0 for save name in curr_file, 1/-1 for cancel.
  27. char save_world_dialog(void);
  28. char save_game_dialog(void);
  29. void save_world(char far *file,char savegame=0,char faded=0);
  30. //Returns non-0 for error so you don't jump to main board
  31. char load_world(char far *file,char edit=0,char savegame=0,char *faded=NULL);
  32. //Loading save games DOESN'T select curr_board as current!
  33. #endif