Allowed new use of functions
This commit is contained in:
parent
fb3a0351c9
commit
1c06b7b4a7
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue