ingame moins moche (mais pas fini)
This commit is contained in:
@@ -4,6 +4,19 @@
|
||||
#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);
|
||||
@@ -12,8 +25,6 @@ void resetKeybindFile(int layout);
|
||||
int main() {
|
||||
std::srand(std::time(NULL));
|
||||
|
||||
#ifndef __JMINOS_RELEASE__
|
||||
|
||||
PiecesFiles pf;
|
||||
for (int i = 1; i <= MAXIMUM_PIECES_SIZE; i++) {
|
||||
if (!std::filesystem::exists("data/pieces/" + std::to_string(i) + "minos.bin")) {
|
||||
@@ -30,11 +41,9 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
// uncomment before compiling release version
|
||||
// do this before compiling release version
|
||||
//resetConfigFiles();
|
||||
|
||||
#endif
|
||||
|
||||
GraphApp UI;
|
||||
UI.run();
|
||||
|
||||
@@ -154,3 +163,5 @@ void resetKeybindFile(int layout) {
|
||||
layoutFile.write(&byte, 1);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user