ingame moins moche (mais pas fini)

This commit is contained in:
2025-03-24 13:28:38 +01:00
parent 38008e00bc
commit c08cfc2255
8 changed files with 146 additions and 36 deletions

View File

@@ -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