Files
oboe/src/porting.hpp

44 lines
1.2 KiB
C++

/*
* porting.h
* BoE
*
* Created by Celtic Minstrel on 22/04/09.
*
*/
#include <cstdint>
#include "oldstructs.hpp"
#include "location.hpp"
struct cPictNum;
namespace porting {
void check_endian();
bool is_small_endian();
void set_current_file_type(bool isMac);
// always flip data
void flip_long(int32_t *s);
void flip_spec_node(legacy::special_node_type *spec);
void flip_short(int16_t *s);
void flip_rect(legacy::Rect* s);
// check the file type and the endian to decide what to flip/swap
void port_t_i(legacy::town_item_list* old);
void port_t_d(legacy::big_tr_type* old);
void port_ave_t(legacy::ave_tr_type* old);
void port_tiny_t(legacy::tiny_tr_type* old);
void port_scenario(legacy::scenario_data_type* old);
void port_item_record(legacy::item_record_type *old);
void port_item_list(legacy::scen_item_data_type* old);
void port_stored_items_list(legacy::stored_items_list_type *old);
void port_out(legacy::outdoor_record_type* out);
void port_talk_nodes(legacy::talking_record_type* dummy_talk_ptr);
void port_town(legacy::town_record_type* dummy_town_ptr);
void port_party(legacy::party_record_type* old);
void port_pc(legacy::pc_record_type* old);
void port_c_town(legacy::current_town_type* old);
cPictNum port_graphic_num(int pic);
}