mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-22 08:31:07 +00:00
Replaced cURL with evpp
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
namespace {
|
||||
struct OnApp {
|
||||
OnApp() {
|
||||
#ifdef WIN32
|
||||
// Initialize Winsock 2.2
|
||||
WSADATA wsaData;
|
||||
int err = WSAStartup(MAKEWORD(2, 2), &wsaData);
|
||||
|
||||
if (err) {
|
||||
std::cout << "WSAStartup() failed with error: %d" << err;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
~OnApp() {
|
||||
#ifdef WIN32
|
||||
WSACleanup();
|
||||
#endif
|
||||
}
|
||||
} __s_onexit_pause;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user