aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-06-15 20:28:57 -0400
committerGitHub <noreply@github.com>2022-06-15 20:28:57 -0400
commit84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d (patch)
tree1a9477bbaaa1c516ae3a18af6dce6e881371dbc8
parent6a3958ea4e01385292c2388960973062220b0ba8 (diff)
downloadNorthstarLauncher-84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d.tar.gz
NorthstarLauncher-84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d.zip
Open placeholder_playerdata as an input stream (#173)
Write access isn't needed.
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp
index 58982200..4308dc68 100644
--- a/NorthstarDedicatedTest/serverauthentication.cpp
+++ b/NorthstarDedicatedTest/serverauthentication.cpp
@@ -259,7 +259,7 @@ bool ServerAuthenticationManager::AuthenticatePlayer(void* player, int64_t uid,
std::fstream pdataStream(pdataPath, std::ios_base::in);
if (pdataStream.fail()) // file doesn't exist, use placeholder
- pdataStream = std::fstream(GetNorthstarPrefix() + "/placeholder_playerdata.pdata");
+ pdataStream = std::fstream(GetNorthstarPrefix() + "/placeholder_playerdata.pdata", std::ios_base::in);
// get file length
pdataStream.seekg(0, pdataStream.end);