aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-17 21:54:03 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-17 21:54:03 +0000
commitb0232efab1845cd47c639ad3cbc4e6d6db42c81e (patch)
tree0536d8f8e360033daca123e51c21a0a1999b165e /NorthstarDedicatedTest/serverauthentication.cpp
parent57c269f6f2202ca396bcbf9b6e8fffcd93e4db7c (diff)
downloadNorthstarLauncher-b0232efab1845cd47c639ad3cbc4e6d6db42c81e.tar.gz
NorthstarLauncher-b0232efab1845cd47c639ad3cbc4e6d6db42c81e.zip
change placeholder playerdata directory
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp
index 7042e9c1..85dc700e 100644
--- a/NorthstarDedicatedTest/serverauthentication.cpp
+++ b/NorthstarDedicatedTest/serverauthentication.cpp
@@ -109,7 +109,7 @@ bool ServerAuthenticationManager::AuthenticatePlayer(void* player, int64_t uid,
{
// use stored auth data
AuthData authData = m_authData[authToken];
- if (!strcmp(strUid.c_str(), authData.uid)) // connecting client's uid is different from auth's uid
+ if (!strcmp(strUid.c_str(), authData.uid)) // connecting client's uid is the same as auth's uid
{
authFail = false;
// uuid
@@ -134,13 +134,13 @@ bool ServerAuthenticationManager::AuthenticatePlayer(void* player, int64_t uid,
strcpy((char*)player + 0xF500, strUid.c_str());
// try reading pdata file for player
- std::string pdataPath = "playerdata/playerdata_";
+ std::string pdataPath = "R2Northstar/playerdata_";
pdataPath += strUid;
pdataPath += ".pdata";
std::fstream pdataStream(pdataPath, std::ios_base::in);
if (pdataStream.fail()) // file doesn't exist, use placeholder
- pdataStream = std::fstream("playerdata/placeholder_playerdata.pdata");
+ pdataStream = std::fstream("R2Northstar/placeholder_playerdata.pdata");
// get file length
pdataStream.seekg(0, pdataStream.end);