(Scenario Editor is unaffected by this commit.) - Menubar converted to a .xib file - Don't include the Info.plist in "Copy Files" stage - Several more dialogs converted; as before, the source resources have had their resource name changed to the new filename - One more converted STR# has been included There were several functions in the PC Editor code that also existed in the BoE game code. I've moved these into the pc.editors.cpp file, so that there's only one copy of each. - display_alchemy() functions changed signatures - moved keyToChar() function into a common file (winutil) - Several constants and globals moved to pc.editors.cpp Supporting changes to dialog framework: - New formatting option to set the frame style; this because the PC editor uses a different frame style in some contexts - Added global default dialog background setting --> This was necessary to correctly set the default text colour --> Will also be needed for the scenario editor, which uses a different default background Other changes: - Add option to load_scenario to skip loading the strings - Fix for crash in soundtool in the event of initialization before playing the first sound
30 lines
929 B
C++
30 lines
929 B
C++
/*
|
|
* fileio.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 22/04/09.
|
|
*
|
|
*/
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <boost/filesystem/path.hpp>
|
|
#include "town.h"
|
|
#include "outdoors.h"
|
|
|
|
namespace fs = boost::filesystem; // TODO: Centralize this alias!
|
|
|
|
bool load_scenario(fs::path file_to_load, bool skip_strings = false);
|
|
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, ter_num_t borders[4][50]);
|
|
bool load_outdoor_str(location which_out, short which_str, char* str);
|
|
void load_spec_graphics();
|
|
std::vector<std::string> load_strings(std::string which);
|
|
|
|
bool load_party(fs::path file_to_load);
|
|
bool save_party(fs::path dest_file);
|