- initialize native functions before the first query.

This commit is contained in:
Christoph Oelckers 2020-04-11 19:44:39 +02:00
parent 932f5c64c2
commit ac1f4b8f11
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@
#include "i_system.h"
#include "version.h"
#include "engineerrors.h"
#include "gamedata/fonts/v_text.h"
#include "v_text.h"
bool I_GetVulkanPlatformExtensions(unsigned int *count, const char **names);
bool I_CreateVulkanSurface(VkInstance instance, VkSurfaceKHR *surface);

View file

@ -757,6 +757,8 @@ void InitThingdef()
qsort(&properties[0], properties.Size(), sizeof(properties[0]), propcmp);
}
InitImports();
// Add the constructor and destructor to FCheckPosition.
auto fcp = NewStruct("FCheckPosition", nullptr);
fcp->mConstructor = *FindFunction(fcp, "_Constructor")->VMPointer;
@ -774,8 +776,6 @@ void InitThingdef()
auto fltd = NewStruct("FLineTraceData", nullptr);
fltd->Size = sizeof(FLineTraceData);
fltd->Align = alignof(FLineTraceData);
InitImports();
}
void SynthesizeFlagFields()