Commit 4e94ca5
committed
[libromdata] Xbox360_XDBF_Private::loadString_GPD(): Fix string lookups.
- p.resource_id is 64-bit, so we have to use cpu_to_be64() on the 16-bit
string ID. Otherwise, we'll never find the string.
This fixes a regression from commit 66411c5.
(Xbox360_XDBF.cpp: loadString_GPD(): Actually search for the correct string ID.)
Affects: v2.0 - v2.7
Fixes #475: 360 GPD achievement files all show with Title: Unknown
Reported by @Masamune3210.1 parent aba8d3c commit 4e94ca5
2 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | 548 | | |
554 | 549 | | |
555 | 550 | | |
556 | 551 | | |
557 | 552 | | |
558 | 553 | | |
559 | 554 | | |
| 555 | + | |
| 556 | + | |
560 | 557 | | |
561 | 558 | | |
562 | 559 | | |
| |||
565 | 562 | | |
566 | 563 | | |
567 | 564 | | |
568 | | - | |
| 565 | + | |
569 | 566 | | |
570 | 567 | | |
571 | 568 | | |
| |||
577 | 574 | | |
578 | 575 | | |
579 | 576 | | |
580 | | - | |
| 577 | + | |
581 | 578 | | |
| 579 | + | |
582 | 580 | | |
583 | 581 | | |
584 | 582 | | |
| |||
0 commit comments