mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Spelling and set filestream mode
This commit is contained in:
parent
49aba62dbb
commit
6f932fe2cb
@ -240,15 +240,15 @@ int main(int argc, char** argv) {
|
|||||||
if (Game::config->GetValue("check_fdb") == "1") {
|
if (Game::config->GetValue("check_fdb") == "1") {
|
||||||
std::ifstream fileStream;
|
std::ifstream fileStream;
|
||||||
|
|
||||||
static const std::vector<std::string> alieses = {
|
static const std::vector<std::string> aliases = {
|
||||||
"res/CDServers.fdb",
|
"res/CDServers.fdb",
|
||||||
"res/cdserver.fdb",
|
"res/cdserver.fdb",
|
||||||
"res/CDClient.fdb",
|
"res/CDClient.fdb",
|
||||||
"res/cdclient.fdb",
|
"res/cdclient.fdb",
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const auto& file : alieses) {
|
for (const auto& file : aliases) {
|
||||||
fileStream.open(file);
|
fileStream.open(file, std::ios::binary | std::ios::in);
|
||||||
if (fileStream.is_open()) {
|
if (fileStream.is_open()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user