mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Remove <filesystem> dependency (#400)
This commit is contained in:
parent
e248b74ee6
commit
ef194f8796
@ -5,7 +5,7 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <bcrypt/BCrypt.hpp>
|
||||
@ -80,10 +80,12 @@ int main(int argc, char** argv) {
|
||||
|
||||
//Check CDClient exists
|
||||
const std::string cdclient_path = "./res/CDServer.sqlite";
|
||||
if (!std::filesystem::is_regular_file(cdclient_path)) {
|
||||
Game::logger->Log("WorldServer", "%s does not exist\n", cdclient_path.c_str());
|
||||
std::ifstream cdclient_fd(cdclient_path);
|
||||
if (!cdclient_fd.good()) {
|
||||
Game::logger->Log("WorldServer", "%s could not be opened\n", cdclient_path.c_str());
|
||||
return -1;
|
||||
}
|
||||
cdclient_fd.close();
|
||||
|
||||
//Connect to CDClient
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user