TINSEL: Map SHOWMENU

This commit is contained in:
Einar Johan Trøan Sømåen 2021-02-28 23:42:26 +01:00
parent 483ead52dd
commit 497ff53c94
No known key found for this signature in database
GPG Key ID: E78D26458077C9C5

View File

@ -4341,6 +4341,10 @@ NoirMapping translateNoirLibCode(int libCode, int32 *pp) {
pp -= mapping.numArgs - 1;
debug(7, "%s(%d)", mapping.name, pp[0]);
break;
case 159:
mapping = NoirMapping{"SHOWMENU", SHOWMENU, 0};
debug(7, "%s()", mapping.name);
break;
case 167:
mapping = NoirMapping{"STARTPROCESS", STARTPROCESS, 1};
pp -= mapping.numArgs - 1;
@ -5505,7 +5509,7 @@ int CallLibraryRoutine(CORO_PARAM, int operand, int32 *pp, const INT_CONTEXT *pi
return -1;
case SHOWMENU:
// DW2 only
// DW2 / Noir
ShowMenu();
return 0;