ObjFW  Diff

Differences From Artifact [15015abb7a]:

To Artifact [4f87ab0c32]:


38
39
40
41
42
43
44





45
46
47
48
49
50
51
# include <windows.h>

extern int _CRT_glob;
extern void __wgetmainargs(int*, wchar_t***, wchar_t***, int, int*);
#elif !defined(OF_IOS)
extern char **environ;
#endif






static OFApplication *app = nil;

static void
atexit_handler(void)
{
	id <OFApplicationDelegate> delegate = [app delegate];







>
>
>
>
>







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# include <windows.h>

extern int _CRT_glob;
extern void __wgetmainargs(int*, wchar_t***, wchar_t***, int, int*);
#elif !defined(OF_IOS)
extern char **environ;
#endif

#ifdef _PSP
# include <pspkerneltypes.h>
# include <psploadexec.h>
#endif

static OFApplication *app = nil;

static void
atexit_handler(void)
{
	id <OFApplicationDelegate> delegate = [app delegate];
133
134
135
136
137
138
139



140

141
142
143
144
145
146
147
+ (void)terminate
{
	exit(0);
}

+ (void)terminateWithStatus: (int)status
{



	exit(status);

}

- init
{
	self = [super init];

	@try {







>
>
>

>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
+ (void)terminate
{
	exit(0);
}

+ (void)terminateWithStatus: (int)status
{
#ifdef _PSP
	sceKernelExitGame();
#else
	exit(status);
#endif
}

- init
{
	self = [super init];

	@try {