mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-24 03:56:34 +00:00
BugFix:
- append '\0' at the end of game name (dll injection) - Release() fake texture (if force reload) instead of calling RemoveTexture(..) Improvements: - template support, you can now have more than one template set one of them as default. - update function will only update the texture if this is needed or the reload button is pressed. - textures will also be removed, if they are removed from the package list.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
This file is part of OpenTexMod.
|
||||
|
||||
|
||||
OpenTexMod is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OpenTexMod is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenTexMod. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef OTM_ADDTEXTURE_H_
|
||||
#define OTM_ADDTEXTURE_H_
|
||||
|
||||
#include "OTM_Main.h"
|
||||
|
||||
class AddTextureClass
|
||||
{
|
||||
public:
|
||||
AddTextureClass(void);
|
||||
~AddTextureClass(void);
|
||||
int ReleaseMemory(void);
|
||||
|
||||
int SetSize(int num);
|
||||
int InheriteMemory(AddTextureClass &tex);
|
||||
|
||||
unsigned int Num;
|
||||
char **Textures;
|
||||
unsigned int *Size;
|
||||
unsigned long *Hash;
|
||||
bool *WasAdded;
|
||||
unsigned int Len;
|
||||
|
||||
bool Add;
|
||||
bool Force;
|
||||
bool Loaded;
|
||||
bool OwnMemory;
|
||||
wxString File;
|
||||
wxString Comment;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* OTM_ADDTEXTURE_H_ */
|
||||
Reference in New Issue
Block a user