| 31 | } |
| 32 | |
| 33 | bool ScriptEngine::loadDAT(const uint8_t* pDatFile, size_t numBytes) |
| 34 | { |
| 35 | delete m_pVM; |
| 36 | |
| 37 | m_pVM = new Daedalus::DaedalusVM(pDatFile, numBytes); |
| 38 | |
| 39 | return initVMWithLoadedDAT(); |
| 40 | } |
| 41 | |
| 42 | |
| 43 | bool ScriptEngine::loadDAT(const std::string& file) |