mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 22:36:23 +00:00
Fixed Data size
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -32,8 +32,6 @@ int main() {
|
||||
DebugData(); //Prints Debug Data
|
||||
}
|
||||
setLoggerLevel("ALL");
|
||||
|
||||
|
||||
ServerMain(Port, MaxPlayers);
|
||||
}
|
||||
|
||||
@@ -61,18 +59,8 @@ void LogInit(){
|
||||
}
|
||||
|
||||
void addToLog(basic_string<char> Data){
|
||||
basic_string<char> LogData = "";
|
||||
ifstream InFileStream;
|
||||
InFileStream.open("Server.log");
|
||||
if(InFileStream.good()){
|
||||
string line;
|
||||
while (getline(InFileStream, line)) {
|
||||
LogData = LogData + line + "\n";
|
||||
}
|
||||
}
|
||||
ofstream LFS;
|
||||
LFS.open ("Server.log");
|
||||
LFS << LogData;
|
||||
LFS.open ("Server.log", std::ios_base::app);
|
||||
LFS << Data.c_str();
|
||||
LFS.close();
|
||||
}
|
||||
Reference in New Issue
Block a user