update readme.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user