Overview
Comment: | More file handling cleanups |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c09457f7ad6613411be70250bdc33917 |
User & Date: | js on 2025-03-05 22:42:56 |
Other Links: | manifest | tags |
Context
2025-03-05
| ||
23:18 | Move classes into separate files check-in: 14861826d4 user: js tags: trunk | |
22:42 | More file handling cleanups check-in: c09457f7ad user: js tags: trunk | |
22:25 | Merge accidental fork check-in: 7cfa53cdf1 user: js tags: trunk | |
Changes
Modified src/Cube.mm from [46551226f2] to [b09eeb8e8f].
︙ | |||
64 65 66 67 68 69 70 71 72 73 74 75 76 77 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | + + + + + + + + + + + + | if (sdesc == nil) sdesc = @""; if (ip == nil) ip = @""; if (passwd == nil) passwd = @""; _gameDataIRI = [OFFileManager.defaultManager currentDirectoryIRI]; _userDataIRI = [OFFileManager.defaultManager currentDirectoryIRI]; [OFFileManager.defaultManager createDirectoryAtIRI:[_userDataIRI IRIByAppendingPathComponent:@"demos"] createParents:true]; [OFFileManager.defaultManager createDirectoryAtIRI:[_userDataIRI IRIByAppendingPathComponent:@"savegames"] createParents:true]; if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO | par) < 0) fatal(@"Unable to initialize SDL"); log(@"net"); if (enet_initialize() < 0) fatal(@"Unable to initialise network module"); |
︙ | |||
114 115 116 117 118 119 120 | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | - - | SDL_SetRelativeMouseMode(SDL_TRUE); SDL_ShowCursor(0); log(@"gl"); gl_init(_width, _height); log(@"basetex"); |
︙ |
Modified src/savegamedemo.mm from [01f038147b] to [38fcd6b7f4].
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | - + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + - + - + + - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + | stopifrecording() { if (demorecording) stop(); } void |
︙ | |||
245 246 247 248 249 250 251 | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | - - - - - - - - - - + + + + + + + + + + + + + + + - + | int playbacktime = 0; int ddamage, bdamage; OFVector3D dorig; void record(OFString *name) { |
︙ | |||
311 312 313 314 315 316 317 | 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | + - - + + + + | } } void demo(OFString *name) { @autoreleasepool { OFString *path = |
︙ |
Modified src/sound.mm from [320b4f8793] to [577f0e91da].
︙ | |||
250 251 252 253 254 255 256 | 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | - + - | #else samples[n] = FSOUND_Sample_Load(n, IRI.fileSystemRepresentation.UTF8String, FSOUND_LOOP_OFF, 0, 0); #endif if (!samples[n]) { |
︙ |