Don't use CoreFoundation to check machine's endianness
This commit is contained in:
@@ -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();
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user