summaryrefslogtreecommitdiff
path: root/Games/Minesweeper/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Games/Minesweeper/main.cpp')
-rw-r--r--Games/Minesweeper/main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp
index 386e94c329..389d735ae1 100644
--- a/Games/Minesweeper/main.cpp
+++ b/Games/Minesweeper/main.cpp
@@ -53,6 +53,23 @@ int main(int argc, char** argv)
return 1;
}
+ 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;
+ }
+
+ if (unveil(nullptr, nullptr) < 0) {
+ perror("unveil");
+ return 1;
+ }
+
auto app_icon = GUI::Icon::default_icon("app-minesweeper");
auto window = GUI::Window::construct();