[Structs] Adjust GfxBrushModels
This commit is contained in:
parent
654b2210ce
commit
6f91b87bdc
@ -3162,10 +3162,10 @@ namespace Game
|
|||||||
struct GfxBrushModel
|
struct GfxBrushModel
|
||||||
{
|
{
|
||||||
GfxBrushModelWritable writable;
|
GfxBrushModelWritable writable;
|
||||||
float bounds[2][3];
|
Bounds bounds;
|
||||||
unsigned int surfaceCount;
|
unsigned int surfaceCount;
|
||||||
unsigned int startSurfIndex;
|
unsigned int startSurfIndex;
|
||||||
int pad;
|
unsigned int surfaceCountNoDecal;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct MaterialMemory
|
struct MaterialMemory
|
||||||
|
@ -9,12 +9,10 @@ namespace Utils
|
|||||||
|
|
||||||
Library::~Library()
|
Library::~Library()
|
||||||
{
|
{
|
||||||
if (this->freeOnDestroy && this->valid())
|
if (this->freeOnDestroy)
|
||||||
{
|
{
|
||||||
FreeLibrary(this->getModule());
|
this->free();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->module = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Library::valid()
|
bool Library::valid()
|
||||||
@ -26,4 +24,14 @@ namespace Utils
|
|||||||
{
|
{
|
||||||
return this->module;
|
return this->module;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Library::free()
|
||||||
|
{
|
||||||
|
if (this->valid())
|
||||||
|
{
|
||||||
|
FreeLibrary(this->getModule());
|
||||||
|
}
|
||||||
|
|
||||||
|
this->module = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@ namespace Utils
|
|||||||
return reinterpret_cast<T*>(GetProcAddress(this->getModule(), process.data()));
|
return reinterpret_cast<T*>(GetProcAddress(this->getModule(), process.data()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void free();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HMODULE module;
|
HMODULE module;
|
||||||
bool freeOnDestroy;
|
bool freeOnDestroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user