Files
oboe/osx/tools/fileio.h
Celtic Minstrel 68dcf3cdef - Moved some files around for better organization
- Fixed compile errors in the other targets.
- Added three test save files: one with a party not in a scenario, one with a party who has just entered Valley of Dying things,
  and one with the same party just after leaving town.
- Added the new menu file for the game that I'm working on (not yet used)

git-svn-id: http://openexile.googlecode.com/svn/trunk@53 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-05-06 20:23:54 +00:00

31 lines
1.1 KiB
C

/*
* fileio.h
* BoE
*
* Created by Celtic Minstrel on 22/04/09.
*
*/
void init_fileio();
struct no_file_chosen {}; // an exception class
Boolean scen_file_filter(AEDesc* item, void* info, void * dummy, NavFilterModes filterMode);
Boolean party_file_filter(AEDesc* item, void* info, void * dummy, NavFilterModes filterMode);
FSSpec nav_get_scenario() throw(no_file_chosen);
FSSpec nav_put_scenario() throw(no_file_chosen);
bool load_scenario(FSSpec file_to_load);
bool load_town(short which_town, cTown*& the_town);
bool load_town(short which_town, cSpeech& the_talk);
bool load_town_str(short which_town, short which_str, char* str);
bool load_town_str(short which_town, cTown*& the_town);
bool load_outdoors(location which_out,cOutdoors& the_out);
bool load_outdoors(location which_out, short mode, unsigned char borders[4][50]);
bool load_outdoor_str(location which_out, short which_str, char* str);
void load_spec_graphics();
FSSpec nav_get_party() throw(no_file_chosen);
FSSpec nav_put_party() throw(no_file_chosen);
bool load_party(FSSpec file_to_load);
bool save_party(FSSpec dest_file);