- 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:
code@koerner-de.net
2011-10-13 19:01:16 +00:00
parent ef57e3f86f
commit b2bade7ff8
34 changed files with 1544 additions and 562 deletions
+2 -1
View File
@@ -334,10 +334,11 @@ int OTM_TextureClient::MergeUpdate(void)
Update[u].Checked = true;
found = true;
Update[u].pTexture = FileToMod[i].pTexture; //might also be a NULL pointer
if (Update[u].ForceReload && Update[i].pTexture!=NULL)
{
OTM_IDirect3DTexture9 *pTexture = Update[u].pTexture->CrossRef_D3Dtex;
RemoveTexture( Update[u].pTexture);
Update[u].pTexture->Release();
Update[u].pTexture = NULL;
if (pTexture!=NULL) //should always be the case
{