Differences From Artifact [6a23516b89]:
- File src/Cube.mm — part of check-in [9684b46414] at 2025-03-04 01:19:15 on branch trunk — Add long options (user: js, size: 7426) [annotate] [blame] [check-ins using]
To Artifact [d63e158bb1]:
- File
src/Cube.mm
— part of check-in
[f5b62f8203]
at
2025-03-04 23:03:58
on branch trunk
— Initial port to macOS
Doesn't work yet as SDL1 is broken on modern macOS. (user: js, size: 7454) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
118 119 120 121 122 123 124 | {'d', @"dedicated", 0, &dedicated, NULL}, {'t', @"window", 0, &windowed, NULL}, {'w', @"width", 1, NULL, NULL}, {'h', @"height", 1, NULL, NULL}, {'u', @"upload-rate", 1, NULL, NULL}, {'n', @"server-desc", 1, NULL, &sdesc}, {'i', @"ip", 1, NULL, &ip}, {'m', @"master", 1, NULL, &master}, {'p', @"password", 1, NULL, &passwd}, | | | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | {'d', @"dedicated", 0, &dedicated, NULL}, {'t', @"window", 0, &windowed, NULL}, {'w', @"width", 1, NULL, NULL}, {'h', @"height", 1, NULL, NULL}, {'u', @"upload-rate", 1, NULL, NULL}, {'n', @"server-desc", 1, NULL, &sdesc}, {'i', @"ip", 1, NULL, &ip}, {'m', @"master", 1, NULL, &master}, {'p', @"password", 1, NULL, &passwd}, {'c', @"max-clients", 1, NULL, NULL}, {'\0', nil, 0, NULL, NULL}}; OFOptionsParser *optionsParser = [OFOptionsParser parserWithOptions:options]; OFUnichar option; while ((option = [optionsParser nextOption]) != '\0') { switch (option) { case 'w': scr_w = optionsParser.argument.longLongValue; |
︙ | ︙ |