mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 02:30:44 +00:00
reformat
This commit is contained in:
@@ -6,14 +6,15 @@
|
||||
/// Created by Anonymous275 on 7/18/2020
|
||||
///
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include "Logger.h"
|
||||
#include <string>
|
||||
class HTTP {
|
||||
public:
|
||||
static bool Download(const std::string &IP, const std::string &Path);
|
||||
static bool Download(const std::string& IP, const std::string& Path);
|
||||
static std::string Post(const std::string& IP, const std::string& Fields);
|
||||
static std::string Get(const std::string &IP);
|
||||
static std::string Get(const std::string& IP);
|
||||
static bool ProgressBar(size_t c, size_t t);
|
||||
|
||||
public:
|
||||
static bool isDownload;
|
||||
};
|
||||
@@ -6,8 +6,8 @@
|
||||
/// Created by Anonymous275 on 4/2/2020.
|
||||
///
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
void InitLog();
|
||||
void except(const std::string& toPrint);
|
||||
void fatal(const std::string& toPrint);
|
||||
|
||||
@@ -6,19 +6,16 @@
|
||||
/// Created by Anonymous275 on 7/18/2020
|
||||
///
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <cstdint>
|
||||
#include "linuxfixes.h"
|
||||
#include <bits/types/siginfo_t.h>
|
||||
#include <cstdint>
|
||||
#include <sys/ucontext.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
void NetReset();
|
||||
extern bool Dev;
|
||||
extern int ping;
|
||||
@@ -48,11 +45,10 @@ void GameSend(std::string Data);
|
||||
void SendLarge(std::string Data);
|
||||
std::string TCPRcv(uint64_t Sock);
|
||||
void SyncResources(uint64_t TCPSock);
|
||||
std::string GetAddr(const std::string&IP);
|
||||
std::string GetAddr(const std::string& IP);
|
||||
void ServerParser(const std::string& Data);
|
||||
std::string Login(const std::string& fields);
|
||||
void TCPSend(const std::string&Data,uint64_t Sock);
|
||||
void TCPClientMain(const std::string& IP,int Port);
|
||||
void UDPClientMain(const std::string& IP,int Port);
|
||||
void TCPSend(const std::string& Data, uint64_t Sock);
|
||||
void TCPClientMain(const std::string& IP, int Port);
|
||||
void UDPClientMain(const std::string& IP, int Port);
|
||||
void TCPGameServer(const std::string& IP, int Port);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
void PreGame(const std::string& GamePath);
|
||||
std::string CheckVer(const std::string &path);
|
||||
std::string CheckVer(const std::string& path);
|
||||
void InitGame(const std::string& Dir);
|
||||
std::string GetGameDir();
|
||||
void LegitimacyCheck();
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
/// Created by Anonymous275 on 7/18/2020
|
||||
///
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <compare>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
void InitLauncher(int argc, char* argv[]);
|
||||
std::string GetEP(char*P = nullptr);
|
||||
std::string GetEP(char* P = nullptr);
|
||||
std::string GetGamePath();
|
||||
std::string GetVer();
|
||||
std::string GetEN();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#define closesocket close
|
||||
#define SD_BOTH SHUT_RDWR
|
||||
// We dont need wsacleanup
|
||||
#define WSACleanup()
|
||||
#define WSACleanup()
|
||||
#define SOCKET_ERROR -1
|
||||
|
||||
#define ZeroMemory(mem, len) memset(mem, 0, len)
|
||||
|
||||
Reference in New Issue
Block a user