cleolibrary / CLEO5

CLEO 5 for GTA San Andreas
https://cleo.li
MIT License
57 stars 6 forks source link

Added load_fxt and unload_fxt opcodes #170

Closed MiranDMC closed 3 months ago

MiranDMC commented 4 months ago

Unload opcode is able to clear files loaded automatically from cleo\cleo_text location too. After starting new game (new/load) cleo_text files are loaded again. So, works as intended.

x87 commented 4 months ago

Why do we need that? You can simply put your FXT in cleo_text

MiranDMC commented 4 months ago

Why do we need that? You can simply put your FXT in cleo_text

You need it in case your mod provides more than one language. Then you are able to just load specified file. Plus all your mod related files can be placed in single directory.

I was thinking about opcodes like that before, but recent discussion by some else mentioning exact same thing made me implement it. https://discord.com/channels/357082905169625089/365620042731225088/1264343009189953718