2976 Commits

Author SHA1 Message Date
djsrv
c883a98b72 DIRECTOR: JANITORIAL: Make int->bool cast explicit 2020-08-21 12:38:42 -04:00
djsrv
8313c2cf6a DIRECTOR: LINGO: Fix unsafe int/bool comparison 2020-08-21 12:38:42 -04:00
Eugene Sandulenko
45c49b1195 DIRECTOR: Load DVs only on demand 2020-08-21 10:52:08 +02:00
Eugene Sandulenko
6372c5d845 DIRECTOR: Implemented DV looping 2020-08-21 09:37:33 +02:00
djsrv
ccfd1c8fd4 DIRECTOR: LINGO: Fix installMenu in D4 movies 2020-08-21 01:02:53 -04:00
djsrv
f2291b2c53 DIRECTOR: LINGO: Handle installMenu 0 2020-08-21 01:02:53 -04:00
djsrv
1e476e1446 DIRECTOR: LINGO: Assert cast member error in tests 2020-08-21 00:20:26 -04:00
djsrv
74bb24c2e5 DIRECTOR: LINGO: Error on missing cast member 2020-08-21 00:20:26 -04:00
djsrv
20e54db2ae DIRECTOR: LINGO: Implement errors 2020-08-21 00:20:22 -04:00
djsrv
07034e3b71 DIRECTOR: LINGO: Remove factoryCall declaration
Was unused.
2020-08-21 00:14:06 -04:00
djsrv
34393fde5e DIRECTOR: LINGO: Remove c_lazyeval 2020-08-20 23:41:51 -04:00
djsrv
f49480425d DIRECTOR: LINGO: Adjust c_eval to var changes 2020-08-20 23:41:28 -04:00
Eugene Sandulenko
e27d5ac7fc DIRECTOR: JANITORIAL: Code formatting and unified the namespace end comments 2020-08-21 00:36:19 +02:00
Eugene Sandulenko
5d41772b5e DIRECTOR: Added more comments 2020-08-21 00:36:19 +02:00
Eugene Sandulenko
54c06e8da0 DIRECTOR: JANITORIAL: Sort debug flags 2020-08-21 00:36:19 +02:00
Eugene Sandulenko
b2030d9e1c DIRECTOR: Code reshuffling for readability 2020-08-21 00:21:32 +02:00
Eugene Sandulenko
afc972f584 DIRECTOR: Split out static data from graphics.cpp
Actually, we'd better move it to director.dat file
2020-08-21 00:18:30 +02:00
trembyle
6b15081607 DIRECTOR: Add detection for more games
Fix minor version numbers for new entries. Existing entries will need
to be revised to include minor version numbers.
2020-08-20 23:53:13 +02:00
Eugene Sandulenko
3afe32c66c DIRECTOR: LINGO: Implement 'the duration of cast' 2020-08-20 23:50:34 +02:00
Eugene Sandulenko
fbbea1a01f DIRECTOR: Implement DV::setMovieRate() 2020-08-20 23:50:34 +02:00
Eugene Sandulenko
586790d987 DIRECTOR: Start Digital Videos when they appear on a channel 2020-08-20 23:50:34 +02:00
djsrv
a5948cfc37 DIRECTOR: LINGO: Evaluate field ref on pop
This simplifies handling of fields, since most of the time it should be
treated as a string. Where we actually need a raw reference, pop(false)
is used.
2020-08-20 15:53:31 -04:00
djsrv
60fe2ea32e DIRECTOR: LINGO: Eliminate lazy vars
Now normal var refs are evaluated on pop. To get the reference itself,
use pop(false)
2020-08-20 15:34:13 -04:00
Nathanael Gentry
6011d53e78 DIRECTOR: Fix typo 2020-08-20 11:07:28 -04:00
Roland van Laar
5043af356e DIRECTOR: LINGO: implement setAt beyond array size
setAt(lst, 10, 1) will set the 10th element (1 indexed) to 1.
When the array size is smaller than 10, setAt will pad the list will
pad the lst with zeros and add the 1 at the end.
2020-08-20 12:28:49 +02:00
djsrv
8078b28e10 DIRECTOR: LINGO: Rewrite b_version
It should support any version now.
2020-08-19 19:27:23 -04:00
djsrv
6db398a74d DIRECTOR: LINGO: Use findVarV4 in cb_v4assign 2020-08-19 18:55:34 -04:00
djsrv
6fe741d2af DIRECTOR: LINGO: Implement findVarV4 2020-08-19 18:55:34 -04:00
Eugene Sandulenko
6889c7e720 DIRECTOR: Do not render stopped videos 2020-08-20 00:53:23 +02:00
Nathanael Gentry
faa88c8f51 DIRECTOR: Preserve text formatting on setText 2020-08-19 16:32:45 -04:00
Nathanael Gentry
73c970421f DIRECTOR: Re-render changed cursors on new frame 2020-08-19 16:31:36 -04:00
djsrv
df7cc8e2c2 DIRECTOR: LINGO: Mark objectcall warnings BUILDBOT 2020-08-19 15:09:45 -04:00
djsrv
febf4592ba DIRECTOR: LINGO: Handle varType in cb_objectcall 2020-08-19 15:06:27 -04:00
djsrv
b95495725a DIRECTOR: LINGO: Remove unnecessary non-eval pop
cb_varrefpush no longer pushes a lazy var, so suppressing its evaluation
is no longer necessary.
2020-08-19 14:42:49 -04:00
djsrv
205a90122a DIRECTOR: LINGO: Warn on missing factory method 2020-08-19 14:31:48 -04:00
Nathanael Gentry
d7ec21cbeb DIRECTOR: Properly discover sprite cursors
We canot just use getSpriteIDFromPos, as Director gets the cursor from the
topmost sprite that has a non-empty cursor.
2020-08-19 10:41:55 -04:00
Nathanael Gentry
c99abbc645 DIRECTOR: Load resource files from relative paths 2020-08-19 10:41:55 -04:00
Nathanael Gentry
5583009442 DIRECTOR: Add default cursor arrow case 2020-08-19 10:41:55 -04:00
Nathanael Gentry
7d68cd7771 Revert "DIRECTOR: Do not attempt to render cursor from empty sprite"
This reverts commit 12a35cda57dbcf7e7ae37de7d6c50b15970f15ef.
2020-08-19 10:41:55 -04:00
Nathanael Gentry
bd2c3f2bba DIRECTOR: Show ink type as decimal 2020-08-19 10:41:54 -04:00
Eugene Sandulenko
cc14dede0f DIRECTOR: More debug output to DV 2020-08-19 14:54:30 +02:00
Eugene Sandulenko
a6a809f1c3 DIRECTOR: Moved DV loading to castmember.cpp 2020-08-19 13:45:15 +02:00
Eugene Sandulenko
02cbcfcd21 DIRECTOR: LINGO: Fix crash in b_alert 2020-08-19 12:42:24 +02:00
Henrik "Henke37" Andersson
b2b4441cee DIRECTOR: Copy constructor for DirectorPlotData
It's another double free causer.
2020-08-19 12:31:34 +02:00
Henrik "Henke37" Andersson
184d54708d DIRECTOR: Assignment operator for InfoEntry struct 2020-08-19 12:31:34 +02:00
Henrik "Henke37" Andersson
3460ee1132 DIRECTOR: InfoEntry struct needs a copy constructor to avoid a double free 2020-08-19 12:31:34 +02:00
Eugene Sandulenko
7053648484 DIRECTOR: Properly set movieRate when DV ends 2020-08-18 23:39:05 +02:00
djsrv
0345a04e7a DIRECTOR: LINGO: cb_objectpush -> cb_varrefpush
The opcode isn't used just for objects.
2020-08-18 16:34:40 -04:00
djsrv
b67df72543 DIRECTOR: LINGO: Push regular var in cb_objectpush 2020-08-18 16:12:29 -04:00
djsrv
191ab2da4e DIRECTOR: LINGO: Fix cb_objectcall lazy vars
Only the first arg is treated as a lazy var.
2020-08-18 15:53:45 -04:00