- Fixed the bug that prevented launching from the Finder

- Wrote almost all the code for saving and loading a new-format party file, plus code to recognize the format of a file.
(Windows saves should also be supported now)

git-svn-id: http://openexile.googlecode.com/svn/trunk@50 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-04 20:10:12 +00:00
parent 1cbb12e1b8
commit 388cb04602
36 changed files with 1251 additions and 145 deletions

View File

@@ -170,7 +170,6 @@ int main(void)
{
//data_store = (piles_of_stuff_dumping_type *) NewPtr(sizeof(piles_of_stuff_dumping_type));
start_time = TickCount();
printf("Starting initialization...");
Initialize();
#ifdef EXILE_BIG_GUNS
//main_dialog_UPP = NewModalFilterProc(cd_event_filter);
@@ -274,10 +273,11 @@ void Initialize(void)
Str255 tit = " ";
/* Initialize all the needed managers. */
InitCursor();
//InitCursor();
//GetKeys(key_state);
GetKeys(key_state);
//
// To make the Random sequences truly random, we need to make the seed start
// at a different number. An easy way to do this is to put the current time
@@ -296,9 +296,10 @@ void Initialize(void)
//
BitMap bmap;
GetQDGlobalsScreenBits(&bmap);
windRect = bmap.bounds;
SetRect(&windRect,bmap.bounds.left,bmap.bounds.top,bmap.bounds.right,bmap.bounds.bottom);
//windRect = bmap.bounds;
find_quickdraw();
//find_quickdraw();
init_directories();
// stored_key = open_pref_file();
@@ -1148,7 +1149,7 @@ void find_quickdraw() {
}
}
else {
SysBeep(2);
SysBeep(50);
ExitToShell();
}
}