Don't use CoreFoundation to check machine's endianness

This commit is contained in:
2014-12-03 18:04:33 -05:00
parent 7a2a0f93d3
commit efa552a366
7 changed files with 11 additions and 48 deletions

View File

@@ -38,7 +38,7 @@ short start_volume,data_volume,jl = 0;
fs::path temp_file_to_load;
std::string last_load_file = "Blades of Exile Scenario";
extern fs::path progDir;
bool cur_scen_is_mac = true;
extern bool cur_scen_is_mac;
void print_write_position ();
void load_spec_graphics();

View File

@@ -21,8 +21,6 @@
#include "dlogutil.h"
#include "scen.menus.h"
#include <CoreFoundation/CFByteOrder.h>
cUniverse univ; // not needed; just to silence the compiler
/* Globals */
@@ -75,8 +73,6 @@ void ding();
cScenario scenario;
//piles_of_stuff_dumping_type *data_store;
RECT right_sbar_rect;
void check_for_intel();
bool mac_is_intel;
//
// Main body of program Exileedit
@@ -185,16 +181,6 @@ void Initialize(void) {
right_sbar->hide();
}
void check_for_intel(){
int response = CFByteOrderGetCurrent();
if(response == CFByteOrderUnknown){
printf("Gestalt error\n");
exit(1);
}
if(response == CFByteOrderLittleEndian) mac_is_intel = true;
else mac_is_intel = false;
}
void Handle_One_Event() {
short chr,chr2;
long menu_choice;