misc: Readd missing RANDOMISE_MEMORY implementation

This commit is contained in:
mintsuki 2022-03-27 23:33:34 +02:00
parent 4d6674fd6b
commit d8015b1c13

View File

@ -666,6 +666,13 @@ static noreturn void _menu(bool timeout_enabled) {
char *serial_str = config_get_value(NULL, 0, "SERIAL");
serial = serial_str != NULL && strcmp(serial_str, "yes") == 0;
char *randomise_mem_str = config_get_value(NULL, 0, "RANDOMISE_MEMORY");
if (randomise_mem_str == NULL)
randomise_mem_str = config_get_value(NULL, 0, "RANDOMIZE_MEMORY");
bool randomise_mem = randomise_mem_str != NULL && strcmp(randomise_mem_str, "yes") == 0;
if (randomise_mem)
pmm_randomise_memory();
char *editor_enabled_str = config_get_value(NULL, 0, "EDITOR_ENABLED");
if (editor_enabled_str != NULL) {
editor_enabled = strcmp(editor_enabled_str, "yes") == 0;