-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I'm working on a tool called YYC Overwrite, which allows you to modify C++ files of YYC builds. It would be cool if we could share these modified C++ files in Catalyst packages.
Currently I have one Catalyst package https://github.com/kraifpatrik/yyc-overwrite-gml which would make use of that. The GML scripts included in the package do nothing by default and their modified C++ files create and manage mutexes and semaphores and other multithreading related stuff. Right now the C++ files are included in YYC Overwrite itself, instead of in the Catalyst package. It would make much more sense to have them all in one place.
Example use case:
- Write a script
get_cpu_countin GML, which only returns 1. - Run the project using YYC to generate C++ files.
- Modify the script's C++ file so it returns number of CPU cores.
- Copy the modifed file to the project/scripts/get_cpu_count folder (where the script's .gml and .yy files are).
- Share the project using Catalyst, including the modified C++ file.
Then when someone includes the package into their project, the C++ file would be copied as well. Then they could use YYC Overwrite to replace their generated C++ files with the modified ones.