Skip to content

Commit

Permalink
CGE: F1 now displays Soltys version and translators.
Browse files Browse the repository at this point in the history
This is only available in versions modified or translated by the team
  • Loading branch information
Strangerke committed Nov 13, 2011
1 parent 3ddea49 commit 8097aeb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/cge/cge_main.h
Expand Up @@ -56,6 +56,7 @@ namespace CGE {
#define kSystemRate 6 // 12 Hz
#define kHeroFun0 (40 * 12)
#define kHeroFun1 ( 2 * 12)
#define kShowScummVMVersion 15
#define kGetNamePrompt 50
#define kGetNameTitle 51
#define kTSeq 96
Expand Down
9 changes: 8 additions & 1 deletion engines/cge/events.cpp
Expand Up @@ -112,7 +112,14 @@ bool Keyboard::getKey(Common::Event &event, int &cgeCode) {
cgeCode = 28;
return true;
}
if (keycode == Common::KEYCODE_F5) {
if (keycode == Common::KEYCODE_F1) {
if (event.type == Common::EVENT_KEYUP)
return false;
// Display ScummVM version and translation strings
for (int i = 0; i < 5; i++)
_vm->_commandHandler->addCommand(kCmdInf, 1, kShowScummVMVersion + i, NULL);
return false;
} else if (keycode == Common::KEYCODE_F5) {
if (_vm->canSaveGameStateCurrently()) {
const EnginePlugin *plugin = NULL;
EngineMan.findGame(_vm->_gameDescription->gameid, &plugin);
Expand Down
2 changes: 2 additions & 0 deletions engines/cge/text.cpp
Expand Up @@ -177,6 +177,8 @@ void Text::say(const char *text, Sprite *spr) {

void CGEEngine::inf(const char *text) {
debugC(1, kCGEDebugEngine, "CGEEngine::inf(%s)", text);
if (!text)
return;

killText();
_talk = new Talk(this, text, kTBRect);
Expand Down

0 comments on commit 8097aeb

Please sign in to comment.