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:
code@koerner-de.net
2012-08-04 19:30:29 +00:00
parent 0bc7eebede
commit 071ac3ece5
41 changed files with 1126 additions and 1108 deletions
+13 -1
View File
@@ -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(':');