This commit is contained in:
Nishi 2026-01-12 07:28:24 +09:00
commit bcefd78599
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 102 additions and 4 deletions

View file

@ -15,5 +15,6 @@
#include <GearSrc/Resource.h>
#include <GearSrc/Endian.h>
#include <GearSrc/SkyBox.h>
#include <GearSrc/XML.h>
#endif

View file

@ -7,6 +7,10 @@
#include <stdarg.h>
#include <math.h>
#ifdef _GEARSRC
#include <xemil.h>
#endif
#if defined(_GEARSRC) && defined(_WIN32)
#define GSDECL extern __declspec(dllexport)
#elif defined(_WIN32)

View file

@ -48,6 +48,7 @@ typedef struct _GSFile* GSFile;
typedef struct _GSResource* GSResource;
typedef struct _GSGL* GSGL;
typedef struct _GSSkyBox* GSSkyBox;
typedef xemil_t* GSXML;
#else
typedef void* GSClient;
typedef void* GSServer;
@ -56,6 +57,7 @@ typedef void* GSFile;
typedef void* GSResource;
typedef void* GSGL;
typedef void* GSSkyBox;
typedef void* GSXML;
#endif
typedef float GSNumber;
typedef GSNumber GSVector2[2];
@ -72,6 +74,7 @@ typedef void (*GSSleepCallback)(int ms);
struct _GSResourceKV {
char* key;
GSResource value;
GSXML xml;
};
#ifdef _GEARSRC

View file

@ -0,0 +1,18 @@
#ifndef __GEARSRC_XML_H__
#define __GEARSRC_XML_H__
#include <GearSrc/MachDep.h>
#include <GearSrc/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
GSDECL GSXML GSXMLOpen(GSEngine engine, const char* path);
GSDECL void GSXMLClose(GSXML xml);
#ifdef __cplusplus
}
#endif
#endif