Difference between revisions of "Help File:GetVersion"
Jump to navigation
Jump to search
Hidden-r3d (talk | contribs) (copy/pasted from: https://cheatengine.org/help/getversion.htm) |
Hidden-r3d (talk | contribs) m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
− | BOOL GetVersion( | + | |
− | PPluginVersion pv, //pointer to structure you have to fill in | + | BOOL GetVersion( |
− | int sizeofpluginversion //size of pluginversion | + | PPluginVersion pv, //pointer to structure you have to fill in |
− | ); | + | int sizeofpluginversion //size of pluginversion |
+ | ); | ||
Parameters | Parameters | ||
+ | |||
pv | pv | ||
Pointer to a PluginVersion struct that you'll have to fill in. | Pointer to a PluginVersion struct that you'll have to fill in. | ||
sizeofpluginversion | sizeofpluginversion | ||
+ | |||
Size of the PluginVersion struct provided in the pv parameter. You can use this to make sure that your plugin version is compatible with the current implementation of Cheat Engine's plugin system. | Size of the PluginVersion struct provided in the pv parameter. You can use this to make sure that your plugin version is compatible with the current implementation of Cheat Engine's plugin system. | ||
+ | |||
Currently, it should be 8. | Currently, it should be 8. | ||
+ | |||
+ | |||
Return Value | Return Value | ||
+ | |||
Return value has to be TRUE | Return value has to be TRUE |
Latest revision as of 01:23, 28 May 2021
The GetVersion routine is a routine that will get called when the dll is queried for the first time.
BOOL GetVersion( PPluginVersion pv, //pointer to structure you have to fill in int sizeofpluginversion //size of pluginversion );
Parameters
pv
Pointer to a PluginVersion struct that you'll have to fill in.
sizeofpluginversion
Size of the PluginVersion struct provided in the pv parameter. You can use this to make sure that your plugin version is compatible with the current implementation of Cheat Engine's plugin system.
Currently, it should be 8.
Return Value
Return value has to be TRUE