File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ public string TempPath
3030 }
3131 }
3232
33+ public string Version = "1.0.1" ;
34+
3335 public override bool EnablePlugin ( )
3436 {
3537 try
@@ -293,6 +295,11 @@ elseif value then
293295 Process . Start ( "explorer.exe" , TempPath ) ;
294296 return 1 ;
295297 } ) ;
298+ sdk . lua . Register ( "GetVersion" , ( IntPtr luaState ) =>
299+ {
300+ sdk . lua . PushString ( luaState , Version ) ;
301+ return 1 ;
302+ } ) ;
296303 sdk . lua . DoString ( @"
297304 local menu = MainForm.Menu
298305 local cheatEngineAdditionsTab = createMenuItem(menu)
@@ -373,6 +380,11 @@ function refineSignature()
373380 popupMenu.Items.insert(insertIndex, copyRelativeAddressMenuItem)
374381 popupMenu.Items.insert(insertIndex, refineSignatureMenuItem)
375382 popupMenu.Items.insert(insertIndex, generateSignatureMenuItem)
383+
384+ local versionMenuItem = createMenuItem(popup)
385+ versionMenuItem.Caption = ""Version "" .. GetVersion()
386+ versionMenuItem.Enabled = false
387+ cheatEngineAdditionsTab.add(versionMenuItem)
376388
377389 local clearPositiveNumbersMenuItem = createMenuItem(menu)
378390 clearPositiveNumbersMenuItem.Caption='Clear Positive Numbers';
Original file line number Diff line number Diff line change 1- using CESDK ;
2- using System ;
3- using System . Diagnostics ;
1+ using System ;
42using System . Text ;
5- using CheatEngineSDK = CESDK . CESDK ;
63
74namespace CheatEngineAdditions . Utils
85{
You can’t perform that action at this time.
0 commit comments