View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2019 , 04:50   Re: Explicitly mark old pdata API as deprecated
Reply With Quote #4

The get|set_pdata_* API should not be deprecated because it's not broken and still useful for games which don't have a gamedata file. However I do agree updating the documentation to encourage the use of the new get|set_ent_data*, get|set_gamerules* API for the supported games would be welcomed.
[Edit: well, I would not mind to deprecate them for the supported games, but I don't think we can do conditional with #pragma deprecated. I guess it will be worth to say a word about it in the next news].

It reminds me we don't have an automatic system to extract and update the new offsets in the gamedata files.
If i remember, I used a semi-automatic way such as dumping dwarf infos from latest .so and using some plugin to generate the files. I'm not sure I still have this plugin. Would be nice if someone could help in making a robust & automatic system for that.
__________________

Last edited by Arkshine; 08-24-2019 at 05:06.
Arkshine is offline