we can load polyos in the app now

This commit is contained in:
2025-03-31 21:14:06 +02:00
parent de14978b01
commit 46ebb88ef2
6 changed files with 78 additions and 35 deletions

View File

@@ -18,9 +18,9 @@ static const int MAXIMUM_PIECES_SIZE = 15;
#define __JMINOS_RELEASE__
#ifdef __JMINOS_RELEASE__
static const int LOADED_PIECES_SIZE = 15;
static const int GENERATED_PIECES_SIZE = 15;
#else
static const int LOADED_PIECES_SIZE = 10;
static const int GENERATED_PIECES_SIZE = 10;
#endif
static const std::pair<PiecesType, int> DEFAULT_SELECTION = {ALL_PIECES, MINIMUM_PIECES_SIZE};
@@ -42,10 +42,8 @@ class Settings {
public:
Settings(bool loadPieces);
private:
void loadPieces(int maximumPiecesSizeRequest);
public:
void loadSettingsFromFile(bool loadPieces, std::optional<int> maximumPiecesSizeRequest);
void saveSettingsToFile() const;