From 068cfdc8fb0e31c9ff736ee426f1291d07115c11 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 4 Oct 2015 23:49:49 +0800 Subject: Rewrite the function calling method and enable it in the VM. Yet another stupid commit. --- src/core/vmrunner.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/vmrunner.hpp') diff --git a/src/core/vmrunner.hpp b/src/core/vmrunner.hpp index d9d9a59..2dec71f 100644 --- a/src/core/vmrunner.hpp +++ b/src/core/vmrunner.hpp @@ -40,7 +40,9 @@ public: blrScriptVM(){ic=fncnt=pinst=0;} int loadLSBFromMemory(const char* ptr,DWORD size); int getInstCount(); - void runFunction(const char *fncnym); + void vmRunFunction(const char *fncnym); + void vmSetRetValf(float v); + void vmSetRetVald(int v); void vmInit(unsigned int seed); void vmDeinit(); }; -- cgit v1.2.3