mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 07:14:59 +00:00
SWORD1: PSX: Improve accuracy of "Paused" message
This commit is contained in:
parent
bde3a46cf4
commit
3bde6ebf00
@ -3112,6 +3112,21 @@ bool Control::loadCustomStrings(const char *filename) {
|
||||
}
|
||||
|
||||
const uint8 *Control::getPauseString() {
|
||||
if (SwordEngine::isPsx()) {
|
||||
switch (SwordEngine::_systemVars.language) {
|
||||
case BS1_ENGLISH:
|
||||
return _psxPauseStrings[0];
|
||||
case BS1_GERMAN:
|
||||
case BS1_FRENCH:
|
||||
return _psxPauseStrings[1];
|
||||
case BS1_ITALIAN:
|
||||
case BS1_SPANISH:
|
||||
return _psxPauseStrings[2];
|
||||
default:
|
||||
return _psxPauseStrings[0];
|
||||
}
|
||||
}
|
||||
|
||||
return _lStrings[STR_PAUSED];
|
||||
}
|
||||
|
||||
|
@ -216,6 +216,7 @@ private:
|
||||
static const uint8 _mediaHouseLanguageStrings[20][43];
|
||||
uint8 _customStrings[20][43];
|
||||
const uint8(*_lStrings)[43];
|
||||
const uint8 _psxPauseStrings[3][7] = { "Paused", "Pause", "Pausa" };
|
||||
SwordEngine *_vm;
|
||||
Common::SaveFileManager *_saveFileMan;
|
||||
ObjectMan *_objMan;
|
||||
|
@ -753,6 +753,11 @@ void SwordEngine::showDebugInfo() {
|
||||
int32 pausedX = Logic::_scriptVars[SCROLL_OFFSET_X] + 400;
|
||||
int32 pausedY = Logic::_scriptVars[SCROLL_OFFSET_Y] + 315;
|
||||
|
||||
if (SwordEngine::isPsx()) {
|
||||
pausedX += 20;
|
||||
pausedY -= 16;
|
||||
}
|
||||
|
||||
uint8 buf[255];
|
||||
|
||||
if (_systemVars.gamePaused) {
|
||||
|
@ -294,9 +294,13 @@ void Text::printDebugLine(uint8 *ascii, uint8 first, int x, int y) {
|
||||
|
||||
x += _resMan->getUint16(head->width);
|
||||
|
||||
// The very first executable version didn't use any overlap (verified on UK disasm)
|
||||
if (SwordEngine::_systemVars.realLanguage != Common::EN_ANY)
|
||||
x -= DEBUG_OVERLAP;
|
||||
if (SwordEngine::isPsx()) {
|
||||
x -= OVERLAP;
|
||||
} else {
|
||||
// The very first executable version didn't use any overlap (verified on UK disasm)
|
||||
if (SwordEngine::_systemVars.realLanguage != Common::EN_ANY)
|
||||
x -= DEBUG_OVERLAP;
|
||||
}
|
||||
|
||||
ascii++;
|
||||
} while (*ascii);
|
||||
|
Loading…
x
Reference in New Issue
Block a user