mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
touch_gui provide adjustment to the interface, so it's more touch friendly Signed-off-by: David Heidelberg <david@ixit.cz>
22 lines
637 B
C
22 lines
637 B
C
// Minetest
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
#include "settings.h"
|
|
|
|
void migrate_settings()
|
|
{
|
|
// Converts opaque_water to translucent_liquids
|
|
if (g_settings->existsLocal("opaque_water")) {
|
|
g_settings->set("translucent_liquids",
|
|
g_settings->getBool("opaque_water") ? "false" : "true");
|
|
g_settings->remove("opaque_water");
|
|
}
|
|
|
|
// Converts enable_touch to touch_controls/touch_gui
|
|
if (g_settings->existsLocal("enable_touch")) {
|
|
bool value = g_settings->getBool("enable_touch");
|
|
g_settings->setBool("touch_controls", value);
|
|
g_settings->setBool("touch_gui", value);
|
|
g_settings->remove("enable_touch");
|
|
}
|
|
}
|