qt: Add UUID features, MAC address configuration, machine move detection

This commit is contained in:
cold-brewed
2024-03-29 08:23:55 -04:00
parent c6289fd85a
commit 4d8e7bd24e
8 changed files with 139 additions and 6 deletions

View File

@@ -209,6 +209,12 @@ load_general(void)
ini_section_delete_var(cat, "window_coordinates");
do_auto_pause = ini_section_get_int(cat, "do_auto_pause", 0);
p = ini_section_get_string(cat, "uuid", NULL);
if (p != NULL)
strncpy(uuid, p, sizeof(uuid) - 1);
else
strncpy(uuid, "", sizeof(uuid) - 1);
}
/* Load monitor section. */
@@ -1878,6 +1884,11 @@ save_general(void)
else
ini_section_delete_var(cat, "do_auto_pause");
if (strnlen(uuid, sizeof(uuid) - 1) > 0)
ini_section_set_string(cat, "uuid", uuid);
else
ini_section_delete_var(cat, "uuid");
ini_delete_section_if_empty(config, cat);
}