CRT Terminal app
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user