diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-03 23:42:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-03 23:42:21 +0800 |
commit | 8e208d0f5bca187588da8ece1b955bdd47e75acd (patch) | |
tree | 9830f7607a4813444ac3017dd3e25daf3197bc4b /src/core/vmrunner.hpp | |
parent | b9d4b60486e224261990c0732852513e86dd94ff (diff) | |
download | bullet-lab-remix-8e208d0f5bca187588da8ece1b955bdd47e75acd.tar.xz |
Port the VM function caller from the testbed version.
This part still requires refinement.
Diffstat (limited to 'src/core/vmrunner.hpp')
-rw-r--r-- | src/core/vmrunner.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/vmrunner.hpp b/src/core/vmrunner.hpp index 60bc2ce..d9d9a59 100644 --- a/src/core/vmrunner.hpp +++ b/src/core/vmrunner.hpp @@ -21,12 +21,10 @@ public: memb front(){return data[l];} memb back(){return data[r];} }; -callStack<Idata> callStk; typedef struct _fncEntry{int hash,pos;}fncEntry; class blrScriptVM { private: - smRandomEngine* re; Idata ir[101],ia[10000]; Idata rr[103],ra[10000]; SInst inst[65537]; @@ -38,11 +36,12 @@ private: int mgetc(); Idata& fetchData(SPara para,bool forcerw=false); public: + smRandomEngine* re; blrScriptVM(){ic=fncnt=pinst=0;} int loadLSBFromMemory(const char* ptr,DWORD size); int getInstCount(); void runFunction(const char *fncnym); - void vmInit(); + void vmInit(unsigned int seed); void vmDeinit(); }; #endif |