-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with savegame screenshots not updating when overwriting o…
…ld ones
- Loading branch information
DMD
authored and
DMD
committed
Sep 30, 2016
1 parent
1b3dea2
commit daa05e3
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
|
||
#include "stdafx.h" | ||
#include "tig_texture.h" | ||
#include <tio/tio.h> | ||
#include "tig_startup.h" | ||
#include <graphics/textures.h> | ||
#include <graphics/device.h> | ||
|
||
TextureFuncs textureFuncs; | ||
IdxTableWrapper<TigTextureRegistryEntry> textureRegistry(0x10EF2E90); | ||
|
||
int TextureFuncs::RegisterTextureOverride(const char * filename, int * textIdOut){ | ||
|
||
auto& textures = tig->GetRenderingDevice().GetTextures(); | ||
auto ref = textures.Override(filename, false); | ||
|
||
if (!ref->IsValid()) { | ||
*textIdOut = -1; | ||
logger->error("Unable to register texture {}", filename); | ||
return 17; | ||
} | ||
|
||
*textIdOut = ref->GetId(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.