mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-20 17:39:30 +00:00
uMod2 Alpha Version:
known bugs: I disabled the remove device function inside the gui, because something in the event handling goes terrible wrong. Changes: - hashing algorithm is now a CRC64 value - changed CRC32 algorithm to a faster one - in save single texture mode, the selected texture can now be displayed - the way how uMod get the raw data of the texture was changed
This commit is contained in:
@@ -39,6 +39,7 @@ void uMod_GameInfo::Init(void)
|
||||
SaveSingleTexture = false;
|
||||
SaveAllTextures = false;
|
||||
myShowSingleTextureString = false;
|
||||
myShowSingleTexture = false;
|
||||
mySupportTPF = false;
|
||||
|
||||
KeyBack = -1;
|
||||
@@ -59,7 +60,9 @@ void uMod_GameInfo::Init(void)
|
||||
myFormatFilter = 0u;
|
||||
myFileFormat = uMod_D3DXIFF_DDS;
|
||||
|
||||
SavePath.Empty();
|
||||
SavePath = wxGetCwd();
|
||||
SavePath << "\\textures";
|
||||
|
||||
OpenPath.Empty();
|
||||
}
|
||||
|
||||
@@ -90,6 +93,9 @@ int uMod_GameInfo::SaveToString( wxString &content )
|
||||
temp.Printf( "ShowSingleTextureString:%d\n", myShowSingleTextureString);
|
||||
content << temp;
|
||||
|
||||
temp.Printf( "ShowSingleTexture:%d\n", myShowSingleTexture);
|
||||
content << temp;
|
||||
|
||||
temp.Printf( "SupportTPF:%d\n", mySupportTPF);
|
||||
content << temp;
|
||||
|
||||
@@ -183,6 +189,12 @@ int uMod_GameInfo::LoadFromString( const wxString &content)
|
||||
if (temp.Len()>0 && temp[0]=='0') myShowSingleTextureString = false;
|
||||
else myShowSingleTextureString = true;
|
||||
}
|
||||
else if (command == "ShowSingleTexture")
|
||||
{
|
||||
temp = line.AfterFirst(':');
|
||||
if (temp.Len()>0 && temp[0]=='0') myShowSingleTexture = false;
|
||||
else myShowSingleTexture = true;
|
||||
}
|
||||
else if (command == "SupportTPF")
|
||||
{
|
||||
temp = line.AfterFirst(':');
|
||||
|
||||
Reference in New Issue
Block a user