CRT Terminal app

This commit is contained in:
Dejvino
2026-11-11 22:03:40 +01:00
parent 1ef22cc832
commit 951c56168c
10 changed files with 1447 additions and 28 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ class Preferences {
public:
bool begin(const char *ns, bool readOnly = false)
{
(void)ns;
(void)readOnly;
snprintf(path_, sizeof(path_), "%s-prefs.cfg", ns);
map_.clear();
if (FILE *f = fopen(path_, "r")) {
char key[64];
@@ -53,5 +53,5 @@ private:
}
std::unordered_map<std::string, uint32_t> map_;
const char *path_ = "mc-prefs.cfg";
char path_[64] = "mc-prefs.cfg";
};