mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
Remove libzip
This commit is contained in:
@@ -35,6 +35,14 @@ std::string GetDate() {
|
||||
void TConsole::BackupOldLog() {
|
||||
fs::path Path = "Server.log";
|
||||
if (fs::exists(Path)) {
|
||||
auto OldLog = Path.filename().stem().string() + ".old.log";
|
||||
try {
|
||||
fs::rename(Path, OldLog);
|
||||
beammp_debug("renamed old log file to '" + OldLog + "'");
|
||||
} catch (const std::exception& e) {
|
||||
beammp_warn(e.what());
|
||||
}
|
||||
/*
|
||||
int err = 0;
|
||||
zip* z = zip_open("ServerLogs.zip", ZIP_CREATE, &err);
|
||||
if (!z) {
|
||||
@@ -68,6 +76,7 @@ void TConsole::BackupOldLog() {
|
||||
|
||||
zip_file_add(z, NewName.c_str(), s, 0);
|
||||
zip_close(z);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ void TPPSMonitor::operator()() {
|
||||
// hard spi
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
beammp_info("PPSMonitor starting");
|
||||
beammp_debug("PPSMonitor starting");
|
||||
std::vector<std::shared_ptr<TClient>> TimedOutClients;
|
||||
while (!mShutdown) {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
|
||||
Reference in New Issue
Block a user