update readme.md

This commit is contained in:
2025-03-27 21:03:32 +01:00
parent 009ed8edc3
commit 88cb44c5fe
4 changed files with 37 additions and 34 deletions

View File

@@ -4,20 +4,6 @@
#include <fstream>
#ifdef __JMINOS_RELEASE__
int main() {
std::srand(std::time(NULL));
GraphApp UI;
UI.run();
return 0;
}
#else
void resetConfigFiles();
void resetSettingsFile();
void resetKeybindFile(int layout);
@@ -43,9 +29,6 @@ int main() {
}
}
// do this before compiling release version
//resetConfigFiles();
GraphApp UI;
UI.run();
@@ -53,13 +36,6 @@ int main() {
}
void resetConfigFiles() {
resetSettingsFile;
for (int i = 0; i < NUMBER_OF_KEYBINDS; i++) {
resetKeybindFile(i);
}
}
void resetSettingsFile() {
std::ofstream settingsFile("data/config/settings.bin", std::ios::trunc | std::ios::binary);
char byte;
@@ -183,5 +159,3 @@ void resetKeybindFile(int layout) {
layoutFile.write(&byte, 1);
}
}
#endif