porting.{hc}pp: add a namespace,
fileio_party.cpp: try to simplify the code which read legacy save, boe.specials.cpp: correct a problem when unlocking rectangles...
This commit is contained in:
@@ -10,11 +10,18 @@
|
||||
#include "oldstructs.hpp"
|
||||
#include "location.hpp"
|
||||
|
||||
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);
|
||||
@@ -29,3 +36,4 @@ 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user