]> git.pld-linux.org Git - packages/LuserNET.git/blob - LuserNET-initializeWithArguments.patch
- tabs in preamle
[packages/LuserNET.git] / LuserNET-initializeWithArguments.patch
1 diff -ur o-LuserNet-0.4.2/main.m LuserNET-0.4.2/main.m
2 --- o-LuserNet-0.4.2/main.m     2004-03-02 16:58:37.000000000 -0700
3 +++ LuserNET-0.4.2/main.m       2004-11-13 15:08:05.775772888 -0700
4 @@ -7,6 +7,7 @@
5  #include <Foundation/NSUserDefaults.h>
6  #include <Foundation/NSPathUtilities.h>
7  #include <Foundation/NSBundle.h>
8 +#include <Foundation/NSProcessInfo.h>
9  #include <AppKit/NSApplication.h>
10  #include <AppKit/NSMenu.h>
11  #include <AppKit/NSWindow.h>
12 @@ -423,13 +424,17 @@
13  @end
14  
15  
16 -int main(int argc, char **argv)
17 +int main(int argc, char **argv, char **env)
18  {
19         AppDelegate *ad;
20         NSApplication *a;
21  
22         CREATE_AUTORELEASE_POOL(arp);
23  
24 +#ifdef GS_PASS_ARGUMENTS
25 +       [NSProcessInfo initializeWithArguments: argv count: argc environment: env];
26 +#endif
27 +
28  //     [NSObject enableDoubleReleaseCheck: YES];
29  
30         a=[NSApplication sharedApplication];
This page took 0.067848 seconds and 3 git commands to generate.