mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- initialize native functions before the first query.
This commit is contained in:
parent
932f5c64c2
commit
ac1f4b8f11
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue