Skip to content

Sharing modified C++ files for YYC Overwrite #26

@kraifpatrik

Description

@kraifpatrik

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:

  1. Write a script get_cpu_count in GML, which only returns 1.
  2. Run the project using YYC to generate C++ files.
  3. Modify the script's C++ file so it returns number of CPU cores.
  4. Copy the modifed file to the project/scripts/get_cpu_count folder (where the script's .gml and .yy files are).
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions