diff options
-rw-r--r-- | Base/home/anon/.config/Minesweeper.ini | 8 | ||||
-rw-r--r-- | Games/Minesweeper/main.cpp | 4 | ||||
-rw-r--r-- | Games/Snake/main.cpp | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/Base/home/anon/.config/Minesweeper.ini b/Base/home/anon/.config/Minesweeper.ini new file mode 100644 index 0000000000..ce44bcaf45 --- /dev/null +++ b/Base/home/anon/.config/Minesweeper.ini @@ -0,0 +1,8 @@ +[Minesweeper] +SingleChording=0 + +[Game] +MineCount=10 +Columns=9 +Rows=9 + diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp index 389d735ae1..e9358abfe5 100644 --- a/Games/Minesweeper/main.cpp +++ b/Games/Minesweeper/main.cpp @@ -53,13 +53,13 @@ int main(int argc, char** argv) return 1; } + auto config = Core::ConfigFile::get_for_app("Minesweeper"); + if (unveil("/res", "r") < 0) { perror("unveil"); return 1; } - auto config = Core::ConfigFile::get_for_app("Minesweeper"); - if (unveil(config->file_name().characters(), "crw") < 0) { perror("unveil"); return 1; diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp index f59818af4a..82437dfc42 100644 --- a/Games/Snake/main.cpp +++ b/Games/Snake/main.cpp @@ -51,13 +51,13 @@ int main(int argc, char** argv) return 1; } + auto config = Core::ConfigFile::get_for_app("Snake"); + if (unveil("/res", "r") < 0) { perror("unveil"); return 1; } - auto config = Core::ConfigFile::get_for_app("Snake"); - if (unveil(config->file_name().characters(), "crw") < 0) { perror("unveil"); return 1; |