Allowed new use of functions

This commit is contained in:
Maddox Werts 2024-08-28 08:45:17 -04:00
parent fb3a0351c9
commit 1c06b7b4a7

View file

@ -7,14 +7,18 @@ UIManager* ui_create() {
UIManager* result = malloc(sizeof(UIManager)); UIManager* result = malloc(sizeof(UIManager));
// Creating Storage // Creating Storage
result->store = store_load(); result->store = store_load("Data");
// Wait, do we need to register? // Wait, do we need to register?
if (!result->store->valid) { if (!result->store->valid) {
FURI_LOG_E(TAG, "You are not registered!"); FURI_LOG_E(TAG, "You are not registered!");
store_save("Hello, World");
store_save("Data", "Hello, World");
FURI_LOG_I(TAG, "Created new user."); FURI_LOG_I(TAG, "Created new user.");
} } else {
FURI_LOG_I(TAG, "File Contains: %s", result->store->data);
}
// Defining basic variables // Defining basic variables
result->running = true; result->running = true;