| 375 | } |
| 376 | |
| 377 | static void ReadROM(void* string, int len, int offset) |
| 378 | { |
| 379 | int inc; |
| 380 | while (len > 0) |
| 381 | { |
| 382 | if (len <= 0x100) |
| 383 | { |
| 384 | inc = len; |
| 385 | } |
| 386 | else |
| 387 | { |
| 388 | inc = 0x100; |
| 389 | } |
| 390 | |
| 391 | len -= inc; |
| 392 | |
| 393 | while (!__OSReadROM(string, inc, offset)) |
| 394 | { |
| 395 | ; |
| 396 | } |
| 397 | |
| 398 | offset += inc; |
| 399 | (u8*)string += inc; |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | inline u32 ReadFont(void* img, u16 encode, void* fontInfo) |
| 404 | { |
no test coverage detected