Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration files for OAT #343

Open
Laupetin opened this issue Jan 12, 2025 · 0 comments
Open

Configuration files for OAT #343

Laupetin opened this issue Jan 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Laupetin
Copy link
Owner

Currently there is no persistent configuration for Unlinker and only kind of "configuration" in form of .zone files for Linker.
The only way to set configuration is by specifying command line parameters.
Some configuration however is always set whenever a certain game or project is used like --search-path for Unlinker or --load for Linker.

To be able to easily setup projects without bat or sh scripts there should support for settings these properties in a file outside the command line.
These files should be have three types (lower overrides higher):

  • Config that is always loaded (located relative to binary)
  • Config that is loaded when a certain game is used (located relative to binary)
  • Config that is loaded when a certain project is built (located relative to project)

My preference for configuration format is json.
This makes it possible to have a json schema in the repository for auto completion purposes.
Also no configuration property should be manditory to be able to just override ones that are different in each configuration.

In terms of location I'm thinking of the following values:

  • Global config: ?bin?/config/config.json
  • Game config: ?bin?/config/?game?.json
  • Project config: From source search paths: config.json

If the global or game config file is missing, it should be initialized with the content of a json object only containing the $schema key pointing to the OAT repository json schema.

@Laupetin Laupetin added the enhancement New feature or request label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant