Overview
Comment: | Migrate last strings |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b81e2948d74e606b374ad69956719d74 |
User & Date: | js on 2025-03-15 23:42:51 |
Other Links: | manifest | tags |
Context
2025-03-16
| ||
00:05 | Migrate vectors check-in: 853e760619 user: js tags: trunk | |
2025-03-15
| ||
23:42 | Migrate last strings check-in: b81e2948d7 user: js tags: trunk | |
23:10 | Run the run loop check-in: 9e7cb01dd0 user: js tags: trunk | |
Changes
Modified src/console.mm from [fbd5eecbef] to [6b830d51dc].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - + + + + + + + - + - - - - - - + + + + + + + + + + | // console.cpp: the console buffer, its display, and command line control #include "cube.h" #include <ctype.h> #import "KeyMapping.h" #import "OFString+Cube.h" @interface ConsoleLine: OFObject @property (readonly, copy) OFString *text; @property (readonly) int outtime; |
︙ | |||
70 71 72 73 74 75 76 77 | 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 | + - + - + - - - - - + + + + + + - - - - - - + + + + + + + + - | conline([string substringToIndex:WORDWRAP], n++ != 0); string = [string substringFromIndex:WORDWRAP]; } conline(string, n != 0); } } // render buffer taking into account time & scrolling void |
︙ |
Modified src/cube.h from [3f59a3114f] to [8cc717f782].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | + + | // one big bad include file for the whole engine... nasty! #import <ObjFW/ObjFW.h> #define gamma gamma__ #include <SDL2/SDL.h> #undef gamma #include "tools.h" #define _MAXDEFSTR 260 @class DynamicEntity; @interface Cube: OFObject <OFApplicationDelegate> @property (class, readonly, nonatomic) Cube *sharedInstance; @property (readonly, nonatomic) SDL_Window *window; @property (readonly, nonatomic) OFIRI *gameDataIRI, *userDataIRI; |
︙ |
Modified src/savegamedemo.mm from [8ffa70a39e] to [7c09343b90].
︙ | |||
101 102 103 104 105 106 107 | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | - + - + | return; } gzwrite(f, (void *)"CUBESAVE", 8); gzputc(f, islittleendian); gzputi(SAVEGAMEVERSION); OFData *data = [player1 dataBySerializing]; gzputi(data.count); |
︙ | |||
159 160 161 162 163 164 165 | 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 | + - + - | cStringWithEncoding:OFLocale.encoding], "rb9"); if (!f) { conoutf(@"could not open %@", IRI.string); return; } char mapname[_MAXDEFSTR] = { 0 }; |
︙ | |||
449 450 451 452 453 454 455 | 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 | - + - + - + | DynamicEntity *target = players[democlientnum]; assert(target); int extras; // read additional client side state not present in normal // network stream |
︙ |
Modified src/serverbrowser.mm from [fe609f090e] to [fbd128e000].
︙ | |||
36 37 38 39 40 41 42 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + - | SDL_SemWait(resolversem); @synchronized(ResolverThread.class) { if (resolverqueries.count == 0) continue; _query = resolverqueries.lastObject; |
︙ | |||
144 145 146 147 148 149 150 | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | - + - | resolvercheck(OFString **name, ENetAddress *address) { @synchronized(ResolverThread.class) { if (resolverresults.count > 0) { ResolverResult *rr = resolverresults.lastObject; *name = rr.query; *address = rr.address; |
︙ |
Modified src/serverutil.mm from [195e0442e7] to [26cbbdcb4f].
︙ | |||
43 44 45 46 47 48 49 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + + + | } void sendstring(OFString *t_, uchar *&p) { @autoreleasepool { const char *t = t_.UTF8String; |
︙ |
Modified src/tools.h from [64ce1d6c09] to [a3d0973ada].
︙ | |||
51 52 53 54 55 56 57 | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - - - - - - - - - - - - - - - - - - - - - - - - | #define loopl(m) loop(l, m) #ifndef OF_WINDOWS # define __cdecl # define _vsnprintf vsnprintf #endif |
︙ |