commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,42 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "script/script_vm.h"
#include "filesystem/filesystem.h"
#include "platform.h"
using namespace GS;
using namespace GS::Script;
//------------------------------------------------------------------------------
bool IVM::CompileFile(const char *uri, const Object *context)
{
Array <char> data;
if (!Platform::Get().io->FileLoad(uri, data))
return false;
return Compile(data, data.GetCount(), context, uri);
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void IVM::SetDebugInterface(IDebug *i, bool)
{
debug_interface = i;
}
void IVM::Kill(const char *reason)
{
if (debug_interface)
debug_interface->OnFatalError(reason);
state = StateDead;
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
IVM::IVM() : state(StateOk) {}
IVM::~IVM() {}
//------------------------------------------------------------------------------