Difference between revisions of "Help File:GetVersion"

From Cheat Engine
Jump to navigation Jump to search
(copy/pasted from: https://cheatengine.org/help/getversion.htm)
 
m (formatting edits)
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

Revision as of 01:22, 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.

    1. Return Value

Return value has to be TRUE