Subversion Repositories eduke32

Rev

Rev 5005 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5005 Rev 5558
Line 8... Line 8...
8
#import <Foundation/Foundation.h>
8
#import <Foundation/Foundation.h>
9
#include <TargetConditionals.h>
9
#include <TargetConditionals.h>
10
10
11
#if TARGET_OS_MAC
11
#if TARGET_OS_MAC
12
12
-
 
13
#include "compat.h"
-
 
14
13
#import <AppKit/AppKit.h>
15
#import <AppKit/AppKit.h>
14
16
15
#include "sdl_inc.h"
17
#include "sdl_inc.h"
16
#include "SDLMain.h"
18
#include "SDLMain.h"
17
19
Line 74... Line 76...
74
{
76
{
75
    /* Post a SDL_QUIT event */
77
    /* Post a SDL_QUIT event */
76
    SDL_Event event;
78
    SDL_Event event;
77
    event.type = SDL_QUIT;
79
    event.type = SDL_QUIT;
78
    SDL_PushEvent(&event);
80
    SDL_PushEvent(&event);
-
 
81
-
 
82
    UNREFERENCED_PARAMETER(sender);
79
}
83
}
80
@end
84
@end
81
85
82
@interface SDLMain (NSObject) <NSFileManagerDelegate>
86
@interface SDLMain (NSObject) <NSFileManagerDelegate>
83
@end
87
@end
Line 204... Line 208...
204
    /* Start the main event loop */
208
    /* Start the main event loop */
205
    [nsapp run];
209
    [nsapp run];
206
210
207
    [sdlMain release];
211
    [sdlMain release];
208
    [pool release];
212
    [pool release];
-
 
213
-
 
214
    UNREFERENCED_PARAMETER(argc);
-
 
215
    UNREFERENCED_PARAMETER(argv);
209
}
216
}
210
217
211
218
212
/*
219
/*
213
 * Catch document open requests...this lets us notice files when the app
220
 * Catch document open requests...this lets us notice files when the app
Line 252... Line 259...
252
    gArgv = newargv;
259
    gArgv = newargv;
253
260
254
    SDL_strlcpy(arg, temparg, arglen);
261
    SDL_strlcpy(arg, temparg, arglen);
255
    gArgv[gArgc++] = arg;
262
    gArgv[gArgc++] = arg;
256
    gArgv[gArgc] = NULL;
263
    gArgv[gArgc] = NULL;
-
 
264
-
 
265
    UNREFERENCED_PARAMETER(theApplication);
-
 
266
257
    return TRUE;
267
    return TRUE;
258
}
268
}
259
269
260
270
261
/* Called when the internal event loop has just started running */
271
/* Called when the internal event loop has just started running */
Line 268... Line 278...
268
278
269
    /* Hand off to main application code */
279
    /* Hand off to main application code */
270
    gCalledAppMainline = TRUE;
280
    gCalledAppMainline = TRUE;
271
    status = SDL_main (gArgc, gArgv);
281
    status = SDL_main (gArgc, gArgv);
272
282
-
 
283
    UNREFERENCED_PARAMETER(note);
-
 
284
273
    /* We're done, thank you for playing */
285
    /* We're done, thank you for playing */
274
    exit(status);
286
    exit(status);
275
}
287
}
276
@end
288
@end
277
289