Differences From Artifact [0afcae2b92]:
- File
src/commands.mm
— part of check-in
[b8dd9a3d27]
at
2025-03-09 00:27:20
on branch trunk
— commands.mm: Remove stray break
This was from when a switch was used before. (user: js, size: 11589) [annotate] [blame] [check-ins using]
To Artifact [e9d197474b]:
- File src/commands.mm — part of check-in [d751d8b0b7] at 2025-03-09 00:39:50 on branch trunk — Clean up user data vs. game data (user: js, size: 11832) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
334 335 336 337 338 339 340 | if (completeidx >= idx) completeidx = 0; } } bool | | | > > | < | > > > > < | 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | if (completeidx >= idx) completeidx = 0; } } bool execfile(OFIRI *cfgfile) { @autoreleasepool { OFString *command; @try { command = [OFString stringWithContentsOfIRI:cfgfile]; } @catch (OFOpenItemFailedException *e) { return false; } @catch (OFReadFailedException *e) { return false; } execute(command); return true; } } void exec(OFString *cfgfile) { @autoreleasepool { if (!execfile([Cube.sharedInstance.userDataIRI IRIByAppendingPathComponent:cfgfile]) && !execfile([Cube.sharedInstance.gameDataIRI IRIByAppendingPathComponent:cfgfile])) conoutf(@"could not read \"%@\"", cfgfile); } } void writecfg() { OFStream *stream; |
︙ | ︙ |