Differences From Artifact [65508559f3]:
- File
src/main.mm
— part of check-in
[1ee33c9983]
at
2024-08-03 14:50:31
on branch trunk
— Don't depend on global constructors for commands
This breaks when using ObjC, as these can run before the ObjC module is initialized, resulting in non-working message sends as the selectors are not registered yet. (user: js, size: 6619) [annotate] [blame] [check-ins using]
To Artifact [6994beff69]:
- File src/main.mm — part of check-in [f8f97851f3] at 2024-08-03 17:02:33 on branch trunk — Make conoutf take an OFString (user: js, size: 6622) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
102 103 104 105 106 107 108 | bool dedicated = false; int fs = SDL_FULLSCREEN, par = 0, uprate = 0, maxcl = 4; char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; islittleendian = *((char *)&islittleendian); processInitQueue(); | | | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | bool dedicated = false; int fs = SDL_FULLSCREEN, par = 0, uprate = 0, maxcl = 4; char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; islittleendian = *((char *)&islittleendian); processInitQueue(); #define log(s) conoutf(@"init: %s", s) log("sdl"); for (int i = 1; i < argc; i++) { char *a = &argv[i][2]; if (argv[i][0] == '-') switch (argv[i][1]) { case 'd': |
︙ | ︙ | |||
140 141 142 143 144 145 146 | case 'p': passwd = a; break; case 'c': maxcl = atoi(a); break; default: | | | | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | case 'p': passwd = a; break; case 'c': maxcl = atoi(a); break; default: conoutf(@"unknown commandline option"); } else conoutf(@"unknown commandline argument"); }; #ifdef _DEBUG par = SDL_INIT_NOPARACHUTE; fs = 0; #endif |
︙ | ︙ |