update readme
This commit is contained in:
@@ -10,7 +10,12 @@
|
||||
static const int MAXIMUM_BOARD_WIDTH = 40;
|
||||
static const int MAXIMUM_BOARD_HEIGHT = 40;
|
||||
|
||||
//#define __JMINOS_RELEASE__
|
||||
#ifdef __JMINOS_RELEASE__
|
||||
static const int MAXIMUM_PIECES_SIZE = 15;
|
||||
#else
|
||||
static const int MAXIMUM_PIECES_SIZE = 10;
|
||||
#endif
|
||||
|
||||
|
||||
class Settings {
|
||||
|
||||
@@ -12,7 +12,8 @@ void resetKeybindFile(int layout);
|
||||
int main() {
|
||||
std::srand(std::time(NULL));
|
||||
|
||||
// keep only for dev
|
||||
#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")) {
|
||||
@@ -29,8 +30,10 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
// before compiling release version
|
||||
resetConfigFiles();
|
||||
// uncomment before compiling release version
|
||||
//resetConfigFiles();
|
||||
|
||||
#endif
|
||||
|
||||
GraphApp UI;
|
||||
UI.run();
|
||||
|
||||
Reference in New Issue
Block a user