diff --git a/CommonLibSF/src/RE/V/VirtualMachine.cpp b/CommonLibSF/src/RE/V/VirtualMachine.cpp new file mode 100644 index 00000000..ee0706c9 --- /dev/null +++ b/CommonLibSF/src/RE/V/VirtualMachine.cpp @@ -0,0 +1,11 @@ +#include "RE/V/VirtualMachine.h" +#include "RE/G/GameVM.h" + +namespace RE::BSScript::Internal +{ + VirtualMachine* VirtualMachine::GetSingleton() + { + auto vm = GameVM::GetSingleton(); + return vm ? static_cast(vm->impl.get()) : nullptr; + } +} \ No newline at end of file