cleolibrary / CLEO5

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

move version-specific code to CGameVersionManager #198

Open x87 opened 2 months ago

x87 commented 2 months ago
          please move it to CGameVersionManager, it's better to keep all hooks in one place for future support of more versions/games.

can be done in a follow-up PR

_Originally posted by @x87 in https://github.com/cleolibrary/CLEO5/pull/197#discussion_r1765149358_

MiranDMC commented 1 month ago

CGameVersionManager should be rewritten to use text identifiers instead enum. Then CLEO export can be added so other plugins can benefit from it too. It would also make possible to display meaningful error messages about some function not being supported in current game version.