cleolibrary / CLEO5

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

Block use of CFileMgr::SetDir by call_function opcodes. #226

Closed MiranDMC closed 1 month ago

MiranDMC commented 1 month ago

Cherry picked from ModLoader support branch. Still not solves all problems with SkinSelector, but prevents it from sabotaging the game and other scripts.

x87 commented 1 month ago

Still not solves all problems with SkinSelector,

what problems remain there?

MiranDMC commented 1 month ago

Still not solves all problems with SkinSelector,

what problems remain there?

Seems like ModLoader still depends on working dir even if path provided contains it already. So setting wd is not same as transferring it to the path argument.