mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-04 23:06:25 +00:00
Mingw Compatible
This commit is contained in:
7
src/Network/Resources.cpp
Normal file → Executable file
7
src/Network/Resources.cpp
Normal file → Executable file
@@ -7,8 +7,7 @@
|
||||
///
|
||||
|
||||
#include "Network/network.h"
|
||||
|
||||
#include <WS2tcpip.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <filesystem>
|
||||
#include "Startup.h"
|
||||
#include "Logger.h"
|
||||
@@ -20,6 +19,7 @@
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
#include <future>
|
||||
#include <cmath>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
std::string ListOfMods;
|
||||
@@ -37,8 +37,7 @@ std::vector<std::string> Split(const std::string& String,const std::string& deli
|
||||
}
|
||||
|
||||
void CheckForDir(){
|
||||
struct stat info{};
|
||||
if(stat( "Resources", &info) != 0){
|
||||
if(!fs::exists("Resources")){
|
||||
_wmkdir(L"Resources");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user