Johannes Schickel
8fc7d60feb
SCI: Make GPL headers consistent in themselves.
2014-02-18 02:39:37 +01:00
Filippos Karapetis
398d0ffcef
SCI: Check for object visibility, if an object defines it
...
Fixes the inventory in GK1
2012-05-14 02:30:15 +03:00
Filippos Karapetis
f61ea4c9cf
SCI: Fixed text background color and text transparency for SCI32 games
2011-10-28 22:20:31 +03:00
Filippos Karapetis
96ce226967
SCI: Proper implementation of text drawing for SCI2+
2011-10-11 01:25:08 +03:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Walter van Niftrik
952d1a084c
SCI: Implement Mac iconbar event handling.
2011-03-09 21:05:19 +01:00
Max Horn
ba3e826872
SCI: Remove any use of printf
...
svn-id: r54037
2010-11-02 09:49:47 +00:00
Martin Kiewitz
87b78b1673
SCI: kClone/kDisposeClone behaviour more accurate
...
now also checking -info- selector, if object is supposed to get freed. Fixes kq4 early hanging (in intro, when opening door, etc.)
svn-id: r52508
2010-09-03 18:14:59 +00:00
Martin Kiewitz
ff7476d9f1
SCI: adding virtual lists for qfg-import rooms
...
now lists import files of all possible games, adds game title before that, removes game prefixes for all files
svn-id: r52441
2010-08-29 15:13:25 +00:00
Filippos Karapetis
d1e45fd5d9
SCI: Removed a now unused selector from the selector cache
...
svn-id: r52349
2010-08-24 17:12:31 +00:00
Martin Kiewitz
1b69257654
SCI: changing hoyle 4 workaround
...
fixing hoyle 4 detection entry (not a demo)
adding direct selector fix, maybe we should replace this later with a script patch
adding detailed comment about the issue
svn-id: r51753
2010-08-05 07:49:19 +00:00
Martin Kiewitz
353b0d2993
SCI: support useInsetRect in kFrameout
...
svn-id: r51251
2010-07-24 17:43:56 +00:00
Martin Kiewitz
15ef4b23a0
SCI: some work on priority in sci32
...
svn-id: r51134
2010-07-22 10:24:08 +00:00
Filippos Karapetis
d53e5fbfb7
SCI: Removed the restoring parameter of the run_vm() function
...
svn-id: r51076
2010-07-20 23:15:07 +00:00
Martin Kiewitz
90763f6e24
SCI: kDoBresen - save last position of client inside mover - fixes lsl6 tram still shaking while gotten stopped due ego
...
svn-id: r50931
2010-07-16 05:46:07 +00:00
Filippos Karapetis
58732b9df1
SCI: More changes to the code for loading from the launcher
...
- Added support for the LSL2 menu bar object
- We no longer need a reference to the init() selector - it's always the first method of the menu bar object
svn-id: r50462
2010-06-28 22:01:26 +00:00
Filippos Karapetis
048ceb73d3
SCI: Removed the hack for loading games from the launcher from run_vm(). This is now done on startup. This should fix loading from the launcher for LSL6
...
svn-id: r50406
2010-06-27 23:20:08 +00:00
Filippos Karapetis
0a102981f0
Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
...
svn-id: r50183
2010-06-23 15:23:37 +00:00
Martin Kiewitz
eeba2812c1
SCI: adding some more global scaling code, adding vanishingY and vanishingX as selectors
...
svn-id: r50180
2010-06-23 13:42:09 +00:00
Martin Kiewitz
3bc011357b
SCI: some initial work on global scaling
...
svn-id: r50179
2010-06-23 12:58:14 +00:00
Filippos Karapetis
db70d66e4a
Strict mode: Changed several warnings due to logic bugs into errors. If an error pops up from these ones, please add the game where it occurred and the steps to reproduce the error before turning it into a warning
...
svn-id: r49973
2010-06-17 23:50:28 +00:00
Max Horn
afa2af5dfb
SCI: cleanup
...
svn-id: r49573
2010-06-10 13:43:38 +00:00
Filippos Karapetis
cc6f5eb3e4
Unified invokeSelector() and invokeSelectorArgv(), and removed the INV_SEL kludge. Also, removed the selectorInvocation parameter - if invokeSelector() fails, the error is in most cases unrecoverable, and the error description thrown covers all cases where kContinueOnInvalidSelector was used. This uncovered a bug too: in some places, non reg_t parameters were parsed
...
svn-id: r49564
2010-06-10 09:22:30 +00:00
Filippos Karapetis
2ae4c5796b
The setCursor selector is no longer used for the detection of the kSetCursor() kernel function semantics
...
svn-id: r49408
2010-06-03 10:44:50 +00:00
Filippos Karapetis
67de5b1bd3
Mass renaming of selector-related functions, and removed some defines which were just cloaking functions with a different name
...
- GET_SEL32 -> readSelector
- GET_SEL32V -> readSelectorValue
- PUT_SEL32 -> writeSelector
- PUT_SEL32V -> writeSelectorValue
Also, changed some selector-related function names and variables to CamelCase
svn-id: r49317
2010-05-29 23:37:15 +00:00
Max Horn
0197e9f6a1
SCI: Making various object and script related things const
...
svn-id: r49246
2010-05-26 16:30:10 +00:00
Matthew Hoops
d49fb8f42d
Add support for showing the icon bar in SCI1.1 Mac.
...
svn-id: r49196
2010-05-24 17:21:11 +00:00
Filippos Karapetis
6d38cf8b8f
Made locateVarSelector() a method of the Object class
...
svn-id: r49031
2010-05-14 15:23:42 +00:00
Max Horn
e45f0f309a
SCI: Remove EngineState::_kernel, use SciEngine::_kernel instead
...
svn-id: r48050
2010-02-13 17:45:40 +00:00
Max Horn
ac4d325e0d
SCI: Add global g_sci pointer to the active SciEngine instance
...
svn-id: r48046
2010-02-13 17:42:49 +00:00
Martin Kiewitz
3545438900
SCI: adding back selector for sci32
...
svn-id: r47879
2010-02-04 17:55:23 +00:00
Martin Kiewitz
6ea821fac7
SCI: adding selectors bottom and right
...
svn-id: r47876
2010-02-04 16:06:56 +00:00
Martin Kiewitz
e3cab50c15
SCI: adding support for resX, resY selectors for sci32
...
svn-id: r47874
2010-02-04 12:01:19 +00:00
Filippos Karapetis
887ca3145e
Initial implementation of text drawing for SCI2 (it's a hack for now, done the "SCI0-SCI11" way, and text splitting is wrong...)
...
svn-id: r47838
2010-02-03 01:36:53 +00:00
Max Horn
4ecaf4d4ac
SCI: restoring param of run_vm is a bool, not an int
...
svn-id: r47834
2010-02-03 01:33:23 +00:00
Max Horn
6c322506dd
SCI: Move some code around (no code changes)
...
svn-id: r47823
2010-02-02 22:50:32 +00:00
Max Horn
4ffec28103
SCI: Move selector stuff to new header; reorder k_argc & k_argp param of invoke_selector
...
svn-id: r47665
2010-01-29 11:03:54 +00:00
Walter van Niftrik
639fb4c389
SCI: Cleanup
...
svn-id: r47649
2010-01-28 20:29:45 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Filippos Karapetis
f6da0146b2
Throw a warning when we're trying to invoke a variable selector, instead of swallowing it silently. This should never happen, so we shouldn't hide it, when it does
...
svn-id: r46596
2009-12-26 17:10:43 +00:00
Filippos Karapetis
71f6fede60
Removed the file and line parameters from the selector handling functions
...
svn-id: r46588
2009-12-26 14:58:23 +00:00
Filippos Karapetis
6d030126d7
More work on the Object class
...
svn-id: r44921
2009-10-11 13:46:58 +00:00
Filippos Karapetis
d6f5d93dbf
Started rewriting the Object struct into a class
...
svn-id: r44878
2009-10-10 15:58:51 +00:00
Max Horn
6ad5840181
SCI: Rename EngineState::segMan to _segMan
...
svn-id: r44629
2009-10-04 18:38:18 +00:00
Willem Jan Palenstijn
77bd8d0bfb
SCI: Add callk stackframe directly in run_vm
...
svn-id: r44473
2009-09-30 00:13:59 +00:00
Filippos Karapetis
6f6b699390
Added a FIXME comment for the removed functionality in the script debugger
...
svn-id: r44466
2009-09-29 15:51:45 +00:00
Filippos Karapetis
f9296a6445
- Changed the unimplemented debug SCI kernel functions (InspectObj, ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging
...
- Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack
- Removed kUnknown() and kStub()
- Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them
Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now
svn-id: r44461
2009-09-29 14:24:07 +00:00
Max Horn
5f440854b7
SCI: Add EngineState::_kernel member for convenience
...
svn-id: r44173
2009-09-17 17:00:36 +00:00
Max Horn
f2d2276c4a
SCI: Move some selector related function into a new file selector.cpp
...
svn-id: r44171
2009-09-17 16:53:58 +00:00