From c83759dcba68dc8774e73b62658fcd8bea567bd3 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 10 Dec 2022 16:13:50 +0100 Subject: [PATCH] created flagsChanged boolean what the fuck do you think it does, genie --- src/core/lib/flags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/lib/flags.c b/src/core/lib/flags.c index a0d03cc..556180c 100644 --- a/src/core/lib/flags.c +++ b/src/core/lib/flags.c @@ -30,6 +30,7 @@ char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptio unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead < inputFlags flags = DEFAULT_FLAGS; encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation; +boolean flagsChanged = 0; //CHANGES TO 1 WHEN U USE setFlags //GETTERS char getEncryptionSeparator() @@ -90,6 +91,8 @@ void setKeyLength(int keyLengthNew) void setFlags(inputFlags newFlags) { flags = newFlags; + + if (!flagsChanged) flagsChanged = 1; } void setEncryptionOperation(encryptionOperation_type_cb newEncryptionOperation)