summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite2d.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2019-06-02 05:15:00 +0200
committerGitHub <noreply@github.com>2019-06-02 05:15:00 +0200
commit809c81ea9ce66b998e0ebaf17965843337c4fdd9 (patch)
treec1b34122ddd4be0461a5310c964e8218b9f5781e /src/render/Sprite2d.cpp
parentskeleton updated, windows specific stuff added (diff)
parentimplemented splashes; fixed zones (diff)
downloadre3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.gz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.bz2
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.lz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.xz
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.zst
re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.zip
Diffstat (limited to 'src/render/Sprite2d.cpp')
-rw-r--r--src/render/Sprite2d.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Sprite2d.cpp b/src/render/Sprite2d.cpp
index 3c699650..fd5900b8 100644
--- a/src/render/Sprite2d.cpp
+++ b/src/render/Sprite2d.cpp
@@ -78,7 +78,7 @@ CSprite2d::Delete(void)
}
void
-CSprite2d::SetTexture(char *name)
+CSprite2d::SetTexture(const char *name)
{
Delete();
if(name)
@@ -86,7 +86,7 @@ CSprite2d::SetTexture(char *name)
}
void
-CSprite2d::SetTexture(char *name, char *mask)
+CSprite2d::SetTexture(const char *name, const char *mask)
{
Delete();
if(name)
@@ -468,8 +468,8 @@ STARTPATCHES
InjectHook(0x51EA00, &CSprite2d::Delete, PATCH_JUMP);
InjectHook(0x51F950, &CSprite2d::SetRenderState, PATCH_JUMP);
- InjectHook(0x51EA40, (void (CSprite2d::*)(char*))&CSprite2d::SetTexture, PATCH_JUMP);
- InjectHook(0x51EA70, (void (CSprite2d::*)(char*,char*))&CSprite2d::SetTexture, PATCH_JUMP);
+ InjectHook(0x51EA40, (void (CSprite2d::*)(const char*))&CSprite2d::SetTexture, PATCH_JUMP);
+ InjectHook(0x51EA70, (void (CSprite2d::*)(const char*,const char*))&CSprite2d::SetTexture, PATCH_JUMP);
InjectHook(0x51EAA0, &CSprite2d::SetAddressing, PATCH_JUMP);
InjectHook(0x51EE90, (void (*)(const CRect&, C4, uint32))CSprite2d::SetVertices, PATCH_JUMP);