1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +00:00

Snake: Persist high score

This commit is contained in:
Tibor Nagy 2020-02-25 19:36:46 +01:00 committed by Andreas Kling
parent 0d2bfe5c65
commit 6a892ea3a2
2 changed files with 8 additions and 4 deletions

View file

@ -37,14 +37,14 @@
int main(int argc, char** argv)
{
if (pledge("stdio rpath shared_buffer accept cpath unix fattr", nullptr) < 0) {
if (pledge("stdio rpath wpath cpath shared_buffer accept cpath unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GUI::Application app(argc, argv);
if (pledge("stdio rpath shared_buffer accept", nullptr) < 0) {
if (pledge("stdio rpath wpath cpath shared_buffer accept", nullptr) < 0) {
perror("pledge");
return 1;
}