Commit Graph
46 Commits
Author SHA1 Message Date
Paul Gilbert ebbb8b79f9 M4: RIDDLE: Room 301 init code 2024-07-24 21:59:36 -07:00
sluicebox c625237baf M4: Fix memory leaks
CID 1551734
CID 1551676
2024-07-19 23:33:20 -07:00
D G Turner bc6d5c1cf6 M4: Fix Unused Variable GCC Compiler Warning 2024-05-26 18:38:58 +01:00
Paul Gilbert 42bdadaed6 M4: Endian fix for script interpreter. Demo now gets in-game on BE systems 2024-05-25 19:50:03 -07:00
Paul Gilbert 38cd2e1cc6 M4: Endian fix for cutscene palettes 2024-05-25 16:44:24 -07:00
Paul Gilbert 32f3bfea6c M4: More endian fixes 2024-05-25 12:17:39 -07:00
Paul Gilbert 2a5ffabb74 M4: Further endian fixes 2024-05-24 20:31:48 -07:00
Paul Gilbert fa5bb0d589 M4: Further endian fixes 2024-05-23 21:59:04 -07:00
Paul Gilbert 2225f85548 M4: Fix endian issue in sprite loading 2024-05-23 20:54:05 -07:00
Paul Gilbert 7a20b43501 M4: Further endian loading fixes 2024-02-17 20:12:25 -08:00
Paul Gilbert 217312dedf M4: Endian proofing ws loading 2024-02-17 18:46:05 -08:00
Paul Gilbert d36ec09657 M4: Fix define for cels byte swapping code 2024-02-05 19:04:49 -08:00
Paul Gilbert 144b4fd1cd M4: Cleaner implementation of BE handling for cels
I don't have a BE system to test this out properly, but in
theory it should be cleaner to do any byte swapping for
loaded resources at load time rather than everywhere the
resource is accessed.

In a few places, such as script execution, it won't be
feasible to track down which bytes are the opcodes and
switch them beforehand. But for others, such as cels,
it should be possible to similar to what I've done here
to ensure the data can be accessed natively afterwards.
2024-02-05 18:58:39 -08:00
Paul Gilbert e7384ec53a M4: Fix crash talking to mayor in room 105 2024-02-03 11:05:48 -08:00
Paul Gilbert e153f02a51 M4: Clarify method out of index sprite errors occurs in 2024-02-02 19:53:13 -08:00
Paul Gilbert 1d048c1eea M4: Multiple likely fixes for reading values on BE systems 2024-01-09 19:08:46 -08:00
Eugene Sandulenko 66b2bc58df M4: Fix warning about wrong allocation type. CID 1533014 2023-12-25 14:47:59 +01:00
Paul Gilbert 496ae8674d M4: Cleanup of wscript/ folder 2023-12-24 01:53:38 +01:00
Paul Gilbert 9e6aa1320c M4: Fix incorrect starting frame index for animations
This fixes animations on Linux which uses 64-bit ints
2023-12-24 01:53:38 +01:00
Paul Gilbert fa036363f2 M4: Fix formatting of tabs in local variables 2023-12-24 01:53:38 +01:00
Paul Gilbert 3e24d2c8d2 M4: Fixing casts to intptr 2023-12-24 01:53:38 +01:00
Paul Gilbert 71eb0c4276 M4: Clarify a bunch of byte * as being intptr 2023-12-24 01:53:38 +01:00
Torbjörn Andersson e7eb97aca3 M4: Fix another GCC compile error 2023-12-24 01:53:38 +01:00
Paul Gilbert e03a38712b M4: In progress room 105 daemon 2023-12-24 01:53:38 +01:00
Paul Gilbert 9d6400e40c M4: Fix a bunch of pointer arithmatic 2023-12-24 01:53:38 +01:00
Paul Gilbert 11d155d7ba M4: Change %ld in string formats to %d 2023-12-24 01:53:38 +01:00
Torbjörn Andersson 82f8a10263 M4: Fixed some GCC errors and warnings
I'm still nowhere near being able to build the M4 engine, though.
2023-12-24 01:53:38 +01:00
Paul Gilbert e9d918c773 M4: Cleanups of mouse init / sprites 2023-12-24 01:53:38 +01:00
Paul Gilbert f8c1cd0186 M4: Fix some pointer arithmatic 2023-12-24 01:53:38 +01:00
Paul Gilbert 57860d338f M4: Simplify globals array holding pointers, gr_series.cpp sysfile pointer 2023-12-24 01:53:38 +01:00
Paul Gilbert 5cb61c4e22 M4: Simplify regs array access in ExtractArg 2023-12-24 01:53:38 +01:00
Paul Gilbert f8d0c88756 M4: Fix various pointer casts to ints 2023-12-24 01:53:38 +01:00
Paul Gilbert c5777ab224 M4: Formatting fixes 2023-12-24 01:53:38 +01:00
Paul Gilbert fd4e2883b1 M4: Implementing lots of wscript and dependencies
Oh, soooo many dependencies.
2023-12-24 01:53:38 +01:00
Paul Gilbert 5f2fdf9bc8 M4: Added fall through comments to LoadWSAssets 2023-12-24 01:53:38 +01:00
Torbjörn Andersson 8296cf026c M4: Fix GCC warnings about potentially undefined behavior 2023-12-24 01:53:38 +01:00
Paul Gilbert 51ee74786b M4: Change existingi Globals class to Vars class
The M4 engine has it's own globals array and constants,
so it was cleaner to have it remain as Globals, and change
the ScummVM Globals class to Vars to disambiguate it
2023-12-24 01:53:38 +01:00
Paul Gilbert 922d8cccd1 M4: Compilation fixes from eriktorbjorn 2023-12-24 01:53:38 +01:00
Paul Gilbert f55dd6f13d M4: Added further Burger setup and dependant code 2023-12-24 01:53:38 +01:00
Paul Gilbert 87ff33f5a9 M4: Fix Burger loading mouse cursors 2023-12-24 01:53:38 +01:00
Paul Gilbert 6aa4b60032 M4: Some Burger initialization code, more VMNG methods 2023-12-24 01:53:38 +01:00
Paul Gilbert 67ca6013f2 M4: Adding burget specific cold startup code 2023-12-24 01:53:38 +01:00
Paul Gilbert 5210eec36a M4: Fix loading walker engines 2023-12-24 01:53:38 +01:00
Paul Gilbert 999bff0174 M4: Adding walker engine init 2023-12-24 01:53:38 +01:00
Paul Gilbert 22016991ec M4: Adding some cursor code 2023-12-24 01:53:38 +01:00
Paul Gilbert a183b57fc2 M4: Added WS load init/shutdown 2023-12-24 01:53:38 +01:00