AmendHub

Download

cyberslak

/

lightsout

/

preferences.h

 

(View History)

cyberslak   Add LICENSE information Latest amendment: 22 on 2025-03-15

1 // SPDX-License-Identifier: MIT
2
3 #pragma once
4
5 #include "list.h"
6
7 typedef struct lo_preferences
8 {
9 char server_name[256];
10 short port;
11 char token[256];
12 } **PrefHandle;
13
14 #define kPreferencesDialogId 129
15 #define kPreferencesFile ((const char*)"Lights Out Preferences")
16 #define kPrefsId 1000
17 #define kEntsId 1000
18
19 PrefHandle preferences_load();
20 short preferences_save(PrefHandle prefs);
21
22 short preferences_dialog();
23
24 short preferences_save_entities(list_t *entities);
25 Handle preferences_get_entities();