summaryrefslogtreecommitdiffstats
path: root/src/core/PlayerInfo.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-10 11:08:31 +0200
committerGitHub <noreply@github.com>2019-07-10 11:08:31 +0200
commit0d3cdcc01c4a9d4fded56407aab782cb2180e1ff (patch)
tree54ae7abb3a1584f65d089a3bc96e9b6d9c1d8dcb /src/core/PlayerInfo.cpp
parentMerge pull request #126 from Nick007J/master (diff)
parentMore frontend inputs. (diff)
downloadre3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar.gz
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar.bz2
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar.lz
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar.xz
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.tar.zst
re3-0d3cdcc01c4a9d4fded56407aab782cb2180e1ff.zip
Diffstat (limited to '')
-rw-r--r--src/core/PlayerInfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index 9d003e76..81c7a199 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -1,6 +1,14 @@
#include "common.h"
#include "patcher.h"
#include "PlayerInfo.h"
+#include "Frontend.h"
WRAPPER void CPlayerInfo::MakePlayerSafe(bool) { EAXJMP(0x4A1400); }
+WRAPPER void CPlayerInfo::LoadPlayerSkin() { EAXJMP(0x4A1700); }
WRAPPER void CPlayerInfo::AwardMoneyForExplosion(CVehicle *vehicle) { EAXJMP(0x4A15F0); }
+
+void CPlayerInfo::SetPlayerSkin(char *skin)
+{
+ strncpy(m_aSkinName, skin, 32);
+ LoadPlayerSkin();
+}