4 |
|
* |
5 |
|
* $Id$ |
6 |
|
* |
7 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
7 |
> |
* Basilisk II (C) 1997-2004 Christian Bauer |
8 |
|
* |
9 |
|
* This program is free software; you can redistribute it and/or modify |
10 |
|
* it under the terms of the GNU General Public License as published by |
24 |
|
#import "Emulator.h" |
25 |
|
#import "EmulatorView.h" |
26 |
|
|
27 |
– |
@implementation Emulator |
28 |
– |
|
27 |
|
#import "sysdeps.h" // Types used in Basilisk C++ code |
28 |
|
|
29 |
|
#import "main_macosx.h" // Prototypes for QuitEmuNoExit() and InitEmulator() |
30 |
|
#import "misc_macosx.h" // Some other prototypes |
31 |
|
#import "video_macosx.h" // Some window/view globals |
32 |
|
|
33 |
< |
#import <adb.h> |
34 |
< |
#import <main.h> |
35 |
< |
#import <prefs.h> |
36 |
< |
#import <timer.h> |
33 |
> |
#import "adb.h" |
34 |
> |
#import "main.h" |
35 |
> |
#import "prefs.h" |
36 |
> |
#import "timer.h" |
37 |
|
|
38 |
< |
#undef check() // memory.h defines a check macro, clashes with an OS X one? |
38 |
> |
#undef check // memory.h defines a check macro, clashes with an OS X one? |
39 |
|
#import <cpu_emulation.h> |
40 |
|
|
41 |
|
#define DEBUG 0 |
42 |
|
#import <debug.h> |
43 |
|
|
44 |
+ |
@implementation Emulator |
45 |
+ |
|
46 |
|
// NSWindow method, which is invoked via delegation |
47 |
|
|
48 |
|
- (BOOL) windowShouldClose: (id)sender |
353 |
|
#endif |
354 |
|
emul = [NNThread new]; |
355 |
|
RTC = [NNTimer new]; |
356 |
< |
redraw = [NNTimer new]; |
356 |
> |
redraw = [[NNTimer alloc] initWithAutoReleasePool] |
357 |
|
tick = [NNTimer new]; |
358 |
|
xPRAM = [NNTimer new]; |
359 |
|
|