Opened 16 years ago

Closed 16 years ago

#4121 closed defect (fixed)

AGI: loading from launcher disables hotkeys

Reported by: SF/zer02 Owned by: bluegr
Priority: high Component: Engine: AGI
Version: Keywords:
Cc: Game: King's Quest 1

Description

Loading games from launcher disables in game hotkeys bug observed in SQ1 SQ2 PQ1 and KQ1 maby all AGI games are effected?

Ticket imported from: #2538123. Ticket imported from: bugs/4121.

Change History (5)

comment:1 by fingolfin, 16 years ago

Priority: normalhigh

comment:2 by sev-, 16 years ago

Owner: set to sev-

comment:3 by eriktorbjorn, 16 years ago

My guess is that this is another symptom of the problem underlying bug #2451381 ("AGI: -x option (or loading from launcher) breaks some games"). I think (I'm far from sure) that the hotkeys are configured with op_set_key() by some sort of game startup script. Loading a game from the launcher probably bypasses this.

Maybe it would work if _game.evKeyp[] was stored in savegames, but comments in the saveGame() function make it look as if it's deliberate that it's not.

comment:4 by bluegr, 16 years ago

I've committed a fix for this to the trunk

The reason for it was that game script 0 was stopped prematurely when a game was loaded from the command line or the launcher

comment:5 by bluegr, 16 years ago

Owner: changed from sev- to bluegr
Resolution: fixed
Status: newclosed
Summary: AGI: loading from launcher disabels hotkeysAGI: loading from launcher disables hotkeys
Note: See TracTickets for help on using tickets.