mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Separate anticheat settings (#15040)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
#include "settings.h"
|
||||
#include "server.h"
|
||||
|
||||
void migrate_settings()
|
||||
{
|
||||
@@ -19,4 +20,12 @@ void migrate_settings()
|
||||
g_settings->setBool("touch_gui", value);
|
||||
g_settings->remove("enable_touch");
|
||||
}
|
||||
|
||||
// Disables anticheat
|
||||
if (g_settings->existsLocal("disable_anticheat")) {
|
||||
if (g_settings->getBool("disable_anticheat")) {
|
||||
g_settings->setFlagStr("anticheat_flags", 0, flagdesc_anticheat);
|
||||
}
|
||||
g_settings->remove("disable_anticheat");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user