mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
About: Use unveil()
This commit is contained in:
parent
39931733a5
commit
21886ff9e2
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (unveil("/res", "r") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
auto window = GWindow::construct();
|
||||
window->set_title("About SerenityOS");
|
||||
Rect window_rect { 0, 0, 240, 180 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue