UnofficialCrusaderPatch / UnofficialCrusaderPatch3

Development for the dll Injection approach
GNU General Public License v3.0
11 stars 2 forks source link

Make the UCP3 parsing understand relative folders or make the GUI convert everything to somewhat absolute folders #43

Closed gynt closed 1 year ago

gynt commented 1 year ago

Maybe like this: files* => files-0.0.1 or files-0.0.2 depending on what is active of course!

gynt commented 1 year ago

Does the parsing need to know when a string is a file path? Then the GUI needs to retain the type in contents Or should the alg look for ucp/ as a prefix. Or should file paths in configs be specified with ~/ucp/ Or should the GUI actually resolve final paths (in the config-full of course). Maybe this latter is best for now!

gynt commented 1 year ago

Okay I decided to implement it as follows. The main.lua file registers aliases for paths with ucp.internal.registerPathAlias(alias, target). e.g., ucp/plugins/example-0.0.1/ is registered with the alias ucp/plugins/example/. So now all io requests are forwarded to the version of the extensions that is actually loaded as specified by the ucp-config.yml file