diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-06-15 20:28:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 20:28:57 -0400 |
commit | 84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d (patch) | |
tree | 1a9477bbaaa1c516ae3a18af6dce6e881371dbc8 | |
parent | 6a3958ea4e01385292c2388960973062220b0ba8 (diff) | |
download | NorthstarLauncher-84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d.tar.gz NorthstarLauncher-84ad1c2b2bd83e7f4448d7e3821c1062f566fa4d.zip |
Open placeholder_playerdata as an input stream (#173)
Write access isn't needed.
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 2 |
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); |