70732 Commits

Author SHA1 Message Date
Martin Kiewitz
8269a94bcd AGI: Use inner loop functionality for have.key
Also do it like the original interpreter did it
2016-02-02 22:26:39 +01:00
Martin Kiewitz
8a29f98c9c AGI: Don't pause in game timer while in menus
Original interpreter did not do it and we paused music/sfx,
which the original interpreter also didn't do.
Shouldn't cause issues.
2016-02-02 21:28:47 +01:00
Martin Kiewitz
5cd7ad8622 AGI: code formatting 2016-02-02 20:41:11 +01:00
Filippos Karapetis
e6fbf372fb LAB: Fix wrong glowing belt file in getInvName()
A regression from 4fb53ad170f483bbce2e27643cd3ee1fa604cebd
2016-02-02 21:19:59 +02:00
Johannes Schickel
6778175f6d AGI: Fix formatting.
This mostly enforces tabs for indentation and spaces for formatting. But also
fixes spaces on empty lines, some extra/missing spaces.

astyle + manual fixup
2016-02-02 20:15:18 +01:00
Martin Kiewitz
9ad3712aa3 AGI: Add WORKAROUND comment to "render after menu"
see commit 0b75bf37219cf49f274da330a44e81068152599c
Original AGI did not do, what we are doing now
2016-02-02 19:58:55 +01:00
Eugene Sandulenko
ec36a50fa4 I18N: Regenerate translations.dat 2016-02-02 19:05:10 +01:00
Eugene Sandulenko
4cf82d63ef I18N: Update Dutch translation. Patch #1624 2016-02-02 19:04:16 +01:00
Eugene Sandulenko
c0716fc4c3 I18N: Update Galego Translation. Patch #1623 2016-02-02 19:03:38 +01:00
Eugene Sandulenko
7a04c65933 I18N: Fixes to Russian translation. Patch #1625 2016-02-02 18:58:45 +01:00
Martin Kiewitz
223ce70eab AGI: Don't use status row for menu mouse trigger
Use hardcoded first line instead
In Donald Duck the status line is at line 24, but also hidden
2016-02-02 17:47:17 +01:00
Martin Kiewitz
0b75bf3721 AGI: Render after menu, when playarea starts at 0
Fixes graphics glitch for Donald Duck
2016-02-02 17:44:53 +01:00
Martin Kiewitz
05a5fc1b65 AGI: mouse support for menu 2016-02-02 17:28:58 +01:00
Martin Kiewitz
604d906038 SCI: make event type, modifiers + character uint16 2016-02-02 15:07:36 +01:00
Martin Kiewitz
7635f3c73e SCI: Make event handling helper tables static 2016-02-02 15:03:54 +01:00
Martin Kiewitz
b052ff2762 SCI: Fix comment about debugger keys
Was changed to Ctrl-Shift-D at some point, because a SCI game
uses Ctrl-D. Comment wasn't changed accordingly back then.
2016-02-02 12:51:25 +01:00
Martin Kiewitz
42cb01f57c SCI: Keyboard event handling cleanup
Renamed "ourModifiers" to "scummVMKeyFlags"
Now also using the flags directly from the ScummVM event in case
it actually was a Keyboard event.
2016-02-02 12:47:47 +01:00
Martin Kiewitz
bc0dd6f821 SCI: Fix regression of previous keycode commit
7aeadba863ed1893fa6095008d35b32ce5117749
Thanks LordHoto for spotting it
2016-02-02 11:43:58 +01:00
Martin Kiewitz
7aeadba863 SCI: Removed ".data" from SciEvent
Was the ScummVM-system-Keycode, sometimes modified.
Changed Menu/Portrait/Controls32-code to use .character instead.
Cleaned up a bit of code in getScummVMEvent()
2016-02-02 11:33:40 +01:00
Eugene Sandulenko
a9511e78d1 I18N: Regenerated translations.dat 2016-02-02 11:15:05 +01:00
Eugene Sandulenko
fc96d77417 I18N: Update Russian translation 2016-02-02 11:15:05 +01:00
Eugene Sandulenko
3adc02a5ba I18N: Update Ukrainian translation 2016-02-02 11:15:04 +01:00
Martin Kiewitz
5acce8276e AGI: changed debug msg VGA font -> PC BIOS font 2016-02-02 11:04:08 +01:00
Martin Kiewitz
82a27a33da SCI: fix typo in comment 2016-02-02 10:46:16 +01:00
Johannes Schickel
d88b1c9477 Merge pull request #656 from lordhoto/xdg-dirs-posix
POSIX: Follow XDG Base Directory Specification for User's Files
2016-02-02 09:22:41 +01:00
Johannes Schickel
7d014be0a2 NEWS: Mention switch to XDG style locations for Unix ports. 2016-02-02 09:16:40 +01:00
Johannes Schickel
687f6067f5 POSIX: Use XDG specification for default save path.
This is what the XDG Base Directory Specification suggests to use. We still
use ~/.scummvm as default path in case the directory exists.

This tackles an aspect of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
2622cded72 POSIX: Move assureDirectoryExists to posix-fs{.h,.cpp}. 2016-02-02 09:16:40 +01:00
Johannes Schickel
dde89c36f5 POSIX: Move default config file location to '$XDG_CONFIG_HOME/scummvm/scummvm.ini'.
This is what the XDG Base Directory Specification suggests to use. We still
use the old location of '~/.scummvmrc' in case that is present.

This tackles an aspect of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
79acfd28e9 POSIX: Use modern path for log file.
This makes use use the XDG Base Directory Specification for the log file path.
This tackles one part of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
b4e360188f POSIX: Restructure code in OSystem_POSIX::createLogFile. 2016-02-02 09:16:40 +01:00
Johannes Schickel
589c3046aa POSIX: Make assureDirectoryExists create full path if needed.
This is kind of like 'mkdir -p' now. But the permissions are different from
standard POSIX behavior.
2016-02-02 08:45:58 +01:00
Johannes Schickel
d8394d3f77 POSIX: Factor directory creation code into its own function. 2016-02-02 08:45:58 +01:00
Tarek Soliman
be2af06131 MAEMO: Update debian/changelog 2016-02-01 22:40:48 -06:00
Willem Jan Palenstijn
658306d005 Merge pull request #659 from wjp/sword25_loading
SWORD25: Use more appropriate function for growing the stack
2016-02-02 02:17:43 +01:00
Willem Jan Palenstijn
ad688f9d6f SWORD25: Remove now unused function 2016-02-02 02:16:41 +01:00
Martin Kiewitz
59d2c4b27e SCI: Do not pass/use .data for mouse button type
Also added comment about .data field. Should be renamed.
2016-02-02 02:10:43 +01:00
Martin Kiewitz
c0bdbe1ca8 SCI: Fix control/Fx keys not working anymore
Was effectively caused by commit adding the keyboard driver bug
for SCI0/SCI01, although the bug is actually real and happens.

It seems Sierra did not check the key-modifier in kMenuSelect.
We do and that's why the code didn't recognize all sorts of
menu keys anymore.
We now isolate the lower byte before comparing.

I also noticed, that Sierra passed keyboard modifiers in mouse
events. This was probably done, so that owners of a 1-button
mouse were able to right-click. We do this now too.

Also added information about mouse modifiers in kGetEvent.

Moved the mouse modifier code into getScummVMEvent().

This should fix bug #7009.
2016-02-02 01:56:08 +01:00
Willem Jan Palenstijn
75f1d2e259 SWORD25: Use more appropriate function for growing the stack
The call to lua_growstack in unpersistThread would unconditionally at
least double the size of the stack. This caused memory usage to grow
exponentially (literally) with the number of serialized threads.

Bugs #6977, #6999.
2016-02-02 01:21:28 +01:00
Willem Jan Palenstijn
727ba4f2b1 LAB: Fix loading rules from room 0
Regression from cd3ebf687c0e783147723095056d72684eddd347.

This fixes bug #6997.
2016-02-02 00:18:34 +01:00
Torbjörn Andersson
d9b4f02d79 SHERLOCK: Silence GCC signed/unsigned warning 2016-02-01 23:20:20 +01:00
Thierry Crozat
832845cd25 I18N: Update source code line numbers in po files 2016-02-01 21:59:30 +00:00
Willem Jan Palenstijn
f94153f07a TOUCHE: Fix semi-intentional array overrun
op_getInventoryItem/op_setInventoryItem could operate on
inventoryItems[4] while inventoryItems has only 4 elements. This
effectively accesses the 'money' field right behind this array.
Due to a broken assert, this was never detected.

This commit fixes it by redirecting accesses to inventoryItems[4] to
money, and also fixes the assert.

An alternative solution would have been enlarging the array, and
removing the money field, but that would require more changes in the
engine.
2016-02-01 20:21:27 +01:00
Willem Jan Palenstijn
8a0e813493 Revert "TOUCHE: Fix buffer overrun. CID 1003934"
This reverts commit 9d2cc7ce84107d93d56371e8266cbe2193a7923b.
2016-02-01 20:17:09 +01:00
Eugene Sandulenko
fcdf68df42 NEWS: Mention Labyrinth of Time support 2016-02-01 20:02:13 +01:00
Martin Kiewitz
2a4a290d31 AGI: change how menus are triggered on Non-PC 2016-02-01 19:08:22 +01:00
Martin Kiewitz
9fff1686fc AGI: Pass vm pointer directly to commands
No functional change
2016-02-01 16:37:28 +01:00
Martin Kiewitz
839ac0a6a4 AGI: Rename _game.lognum to _game.curLogicNr
Also a bit of cleanup
2016-02-01 16:21:13 +01:00
Martin Kiewitz
264222ec29 AGI: Change _game.exitAllLogics to boolean 2016-02-01 16:15:07 +01:00
Martin Kiewitz
6749f22981 AGI: Remove _game.hasPrompt, no longer needed 2016-02-01 16:13:19 +01:00