Commit Graph

15 Commits

Author SHA1 Message Date
matthewdippel
4f213d7a98 SCI: add typing to scifx_to_cpp script
Adding type hints to the various helper methods in this script
to make it easier to read and understand how the scifx parsing is
done.
2022-07-24 12:01:27 +03:00
matthewdippel
df404e3b8d SCI: whitespace changes in output of scifx_to_cpp
Several whitespace changes to the output in order to make the resulting
cpp file consistent with how cpp is formatted in the repo.

- Properly align the opening of the first comment block.
- Properly align the closing brace of the Sci namespace scope.
2022-07-24 12:01:27 +03:00
matthewdippel
5c8781a369 SCI: remove global variables in scifx_to_cpp
Methods in scifx_to_cpp.py refer to arrays outside of their scope.
Refactored them to take them as parameters instead to improve
readability.

Tested by calling on the .scifx files in the same directory as below.
Output is unchanged.

```
python .\scifx_to_cpp.py .\lsl2.scifx
```
2022-07-24 12:01:27 +03:00
matthewdippel
125258caf1 SCI: create main method for scifx_to_cpp script
The scifx_to_cpp.py script has methods intermingled with method calls
that execute when you call the script. Moving the method calls under
a "__main__" header to improve readability.

Tested by calling the script like shown below on the .scifx files in
the same directory. The output is the name.

```
python .\scifx_to_cpp.py .\lsl2.scifx
```
2022-07-24 12:01:27 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Filippos Karapetis
e9e30b0c23 SCI: Change the generated SCIFX code to arrays
The end result of these rules is palette adjustments, so there's no
reason to create custom code for each effect. Searching for palette
mods has an O(n) complexity, but the dataset is quite small, so it
should be negligible.
2020-11-08 22:27:46 +02:00
Willem Jan Palenstijn
2cc67cd29b SCI: Add custom palette mods for SQ3 and LSL2
This adds a devtools script to convert scifx config files from FreeSCI
into C++ code to apply the palette mods.

The actual palette mods are by Matt Hargett, and from FreeSCI.
2020-10-31 11:44:28 +02:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Johannes Schickel
e96900aec3 DEVTOOLS: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Christoph Mallon
a78b2d777d JANITORIAL: Remove extra semicolons. 2011-11-27 12:54:22 +01:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
6cf1de87ac DEVTOOLS: Renamed 'tools' directory to 'devtools' 2011-04-09 23:47:35 +02:00