diff -ur ScummVM-cvs20020914/scummvm/gui/gui.cpp ScummVM-cvs20020914+hack/scummvm/gui/gui.cpp
old
|
new
|
|
29 | 29 | #include "config-file.h" |
30 | 30 | |
31 | 31 | #include <ctype.h> |
| 32 | #include <string.h> |
32 | 33 | |
33 | 34 | #define hline(x, y, x2, color) line(x, y, x2, y, color); |
34 | 35 | #define vline(x, y, y2, color) line(x, y, x, y2, color); |
… |
… |
|
931 | 932 | |
932 | 933 | result = (char *)_s->getStringAddress(string); |
933 | 934 | |
| 935 | if (result && *result == '/') { |
| 936 | result = strchr(result + 1, '/'); |
| 937 | if (result != NULL) |
| 938 | result++; |
| 939 | } |
| 940 | |
934 | 941 | if (!result) { // Gracelessly degrade to english :) |
935 | | if (_s->_features & GF_AFTER_V6) |
| 942 | if (_s->_features & GF_AFTER_V7) |
| 943 | return string_map_table_v7[stringno - 1].string; |
| 944 | else if (_s->_features & GF_AFTER_V6) |
936 | 945 | return string_map_table_v6[stringno - 1].string; |
937 | 946 | else |
938 | 947 | return string_map_table_v5[stringno - 1].string; |
diff -ur ScummVM-cvs20020914/scummvm/gui/newgui.cpp ScummVM-cvs20020914+hack/scummvm/gui/newgui.cpp
old
|
new
|
|
26 | 26 | #include "guimaps.h" |
27 | 27 | #include "dialog.h" |
28 | 28 | |
| 29 | #include <string.h> |
| 30 | |
29 | 31 | /* |
30 | 32 | * TODO list |
31 | 33 | * - implement the missing / incomplete dialogs |
… |
… |
|
281 | 283 | |
282 | 284 | result = (char *)_s->getStringAddress(string); |
283 | 285 | |
| 286 | if (result && *result == '/') { |
| 287 | result = strchr(result + 1, '/'); |
| 288 | if (result) |
| 289 | result++; |
| 290 | } |
| 291 | |
284 | 292 | if (!result) { // Gracelessly degrade to english :) |
285 | | if (_s->_features & GF_AFTER_V6) |
| 293 | if (_s->_features & GF_AFTER_V7) |
| 294 | return string_map_table_v7[stringno - 1].string; |
| 295 | else if (_s->_features & GF_AFTER_V6) |
286 | 296 | return string_map_table_v6[stringno - 1].string; |
287 | 297 | else |
288 | 298 | return string_map_table_v5[stringno - 1].string; |