x86 support

This commit is contained in:
Anonymous275
2021-03-04 22:44:33 +02:00
parent 9a74434bbb
commit 776ddcbbef
6 changed files with 13 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ inline void CloseSocketProper(int socket) {
#ifdef WIN32
#include <conio.h>
#include <winsock2.h>
inline void CloseSocketProper(u_int64 socket) {
inline void CloseSocketProper(SOCKET socket) {
shutdown(socket, SD_BOTH);
closesocket(socket);
}

View File

@@ -6,14 +6,14 @@ class TResourceManager {
public:
TResourceManager();
[[nodiscard]] uint64_t MaxModSize() const { return mMaxModSize; }
[[nodiscard]] size_t MaxModSize() const { return mMaxModSize; }
[[nodiscard]] std::string FileList() const { return mFileList; }
[[nodiscard]] std::string TrimmedList() const { return mTrimmedList; }
[[nodiscard]] std::string FileSizes() const { return mFileSizes; }
[[nodiscard]] int ModsLoaded() const { return mModsLoaded; }
private:
uint64_t mMaxModSize = 0;
size_t mMaxModSize = 0;
std::string mFileSizes;
std::string mFileList;
std::string mTrimmedList;

View File

@@ -50,5 +50,5 @@ private:
void Parse(TClient& c, const std::string& Packet);
void SendFile(TClient& c, const std::string& Name);
static bool TCPSendRaw(SOCKET C, char* Data, int32_t Size);
static void SplitLoad(TClient& c, int64_t Sent, int64_t Size, bool D, const std::string& Name);
static void SplitLoad(TClient& c, size_t Sent, size_t Size, bool D, const std::string& Name);
};