maybegreat48 / GTA-V-Script-Decompiler

A program that can decompile script resource (ysc) files for the PC version of Grand Theft Auto V and Red Dead Redemption 2
67 stars 20 forks source link

Feature Request: option to put enums as comments instead of replacing the value #5

Closed Lucas7yoshi closed 1 year ago

Lucas7yoshi commented 1 year ago

or vice versa really, would be a nice to have for the sake of "preserving the code functionally".

example:

PED::SET_PED_COMBAT_ATTRIBUTES(uLocal_3050[13], BF_Aggressive, true);

to

PED::SET_PED_COMBAT_ATTRIBUTES(uLocal_3050[13], 13 /BF_Aggressive/, true);

or

PED::SET_PED_COMBAT_ATTRIBUTES(uLocal_3050[13], BF_Aggressive /13/, true);

this would save having to dig around the source enums or docs to replicate something accurately while still allowing for at-a-glance information

maybegreat48 commented 1 year ago

Note that substitution is still the default behavior