1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:37:42 +00:00

Games: Use pledge and unveil

This commit is contained in:
Brendan Coles 2020-11-01 20:16:45 +00:00 committed by Andreas Kling
parent 9faca895d3
commit 9f8a8e07c2
5 changed files with 73 additions and 0 deletions

View file

@ -45,6 +45,16 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;
}
if (unveil(nullptr, nullptr) < 0) {
perror("unveil");
return 1;
}
auto window = GUI::Window::construct();
window->set_resizable(false);