Get progDir from argv[0] instead of using CoreFoundation

This commit is contained in:
2014-04-20 00:47:43 -04:00
parent edf37f3291
commit 277dd6c208
5 changed files with 15 additions and 29 deletions

View File

@@ -154,9 +154,9 @@ bool sleep_field;
void check_for_intel();
bool mac_is_intel;
int main(void)
{
int main(int argc, char* argv[]) {
try{
init_directories(argv[0]);
//data_store = (piles_of_stuff_dumping_type *) NewPtr(sizeof(piles_of_stuff_dumping_type));
init_menubar(); // Do this first of all because otherwise a default File and Window menu will be seen
Initialize();
@@ -253,8 +253,6 @@ void Initialize(void)
//SetQDGlobalsRandomSeed(time);
srand(time(NULL));
init_directories();
// stored_key = open_pref_file();
// if (stored_key == -100) {
// stored_key = open_pref_file();