Differences From Artifact [9f8b587f26]:
- File src/main.cxx — part of check-in [0a0d4f9155] at 2024-07-20 15:08:41 on branch trunk — Run clang-format on the entire codebase (user: js, size: 6597) [annotate] [blame] [check-ins using]
- File src/main.mm — part of check-in [7c2704b3d7] at 2024-07-21 12:02:07 on branch trunk — Convert to ObjC++ (user: js, size: 6597) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
99 100 101 102 103 104 105 106 107 108 109 110 111 112 | int main(int argc, char **argv) { bool dedicated = false; int fs = SDL_FULLSCREEN, par = 0, uprate = 0, maxcl = 4; char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; islittleendian = *((char *)&islittleendian); #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] == '-') | > > | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | int main(int argc, char **argv) { 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] == '-') |
︙ | ︙ |