mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-04 14:56:24 +00:00
works but linux build is broken and this is an old version of the source
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <zlib.h>
|
||||
#ifdef __linux__
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#define Biggest 30000
|
||||
std::string Comp(std::string Data){
|
||||
@@ -27,7 +30,7 @@ std::string Comp(std::string Data){
|
||||
deflateEnd(&defstream);
|
||||
int TO = defstream.total_out;
|
||||
std::string Ret(TO,0);
|
||||
memcpy_s(&Ret[0],TO,C,TO);
|
||||
memcpy(&Ret[0],C,TO);
|
||||
delete [] C;
|
||||
return Ret;
|
||||
}
|
||||
@@ -48,7 +51,7 @@ std::string DeComp(std::string Compressed){
|
||||
inflateEnd(&infstream);
|
||||
int TO = infstream.total_out;
|
||||
std::string Ret(TO,0);
|
||||
memcpy_s(&Ret[0],TO,C,TO);
|
||||
memcpy(&Ret[0],C,TO);
|
||||
delete [] C;
|
||||
return Ret;
|
||||
}
|
||||
Reference in New Issue
Block a user