Karol Kosek
6148fd4ed5
Minesweeper: Remove decimal point from the time label
...
The timer was updating fast enough to be a little distracting for me.
2022-07-24 14:09:48 +01:00
Lucas CHOLLET
70846d701c
LaunchServer+SystemServer: Move the portal to a user-specific directory
...
Various changes are needed to support this:
- The directory is created by Core::Account on login (and located in
/tmp).
- Service's sockets are now deleted on exit (to allow re-creation)
- SystemServer needs to handle SIGTERM to correctly destroy services.
2022-07-19 11:15:14 +01:00
sin-ack
c8585b77d2
Everywhere: Replace single-char StringView op. arguments with chars
...
This prevents us from needing a sv suffix, and potentially reduces the
need to run generic code for a single character (as contains,
starts_with, ends_with etc. for a char will be just a length and
equality check).
No functional changes.
2022-07-12 23:11:35 +02:00
sin-ack
3f3f45580a
Everywhere: Add sv suffix to strings relying on StringView(char const*)
...
Each of these strings would previously rely on StringView's char const*
constructor overload, which would call __builtin_strlen on the string.
Since we now have operator ""sv, we can replace these with much simpler
versions. This opens the door to being able to remove
StringView(char const*).
No functional changes.
2022-07-12 23:11:35 +02:00
FrHun
f59c167bb0
Applications+Games+LibGUI: Fix layout problems
2022-06-30 11:51:25 +02:00
FrHun
8dd08d47f1
Applications: Remove usages of deprecated implicit conversions
...
These deprecated conversions are currently in place to make the system
compile, but they are to be removed soon. This prepares that.
2022-06-28 17:52:42 +01:00
Andreas Kling
45de16f195
Userland+Base: Remove Breakout and Pong games
...
These games were not very playable and definitely not fun.
2022-06-15 17:15:04 +02:00
MacDue
177d9b2a5a
Pong: Paint ball antialiased
2022-06-05 16:16:17 +01:00
MacDue
5cb7e4f2f0
Chess: Paint move marker antialiased
2022-06-05 16:16:17 +01:00
MacDue
e2de02d2bb
Breakout: Paint ball antialiased
2022-06-05 16:16:17 +01:00
Linus Groh
173dcfb7cb
Everywhere: Fix a bunch of typos
2022-05-29 15:22:00 +02:00
Paweł Łukasik
01c7158ffe
MasterWord: Check guesses against the word list
...
Previously guesses were not checked which allowed guesses
like 'aaaaa' to be entered.
Currently there's an option to set if a guess should be checked
against the dictionary and rejected if it doesn't exist there.
Additionally settings from Game menu have been moved to its own
entry - Settings.
2022-05-26 21:44:58 +01:00
Sam Atkins
cdffe556c8
LibGUI+Userland: Make Dialog::ExecResult an enum class
2022-05-13 16:27:43 +02:00
Martin Frederic
3e6c083754
Pong: Explicitly clear held keys in Game::reset()
...
The paddle's movement is determined by the currently held keys. A key
is no longer considered held when a matching keyup_event() fires.
However, the event does not fire when the timer has stopped (e.g. due to
a game over condition), which can result in the paddle keeping its
former direction and moving on its own -- even after the player started
a new game. Therefore, any held keys will be cleared explicitly.
2022-04-15 00:13:09 +02:00
Martin Frederic
02d2a300e7
Pong: Restart timer if necessary
...
When the player runs into a game over condition, Game's timer is
stopped. In order for reset() to work properly, the timer has to be
started again. The condition is tracked via a new member variable,
`m_game_over`. To prevent confusion, game_over() has been renamed to
show_game_over_message().
2022-04-15 00:13:09 +02:00
Martin Frederic
0abdeb474f
Pong: Extend Game::reset()
...
Previously, the method reset the ball and the paddles. Now, it will
also reset and redraw the scores and update the ball's rect.
2022-04-15 00:13:09 +02:00
Martin Frederic
740beea5ce
Pong: Add 'New Game' action
...
This declares Game::reset() public and lets the menu action invoke it.
2022-04-15 00:13:09 +02:00
Simon Wanner
206d6ece55
LibGfx: Move other font-related files to LibGfx/Font/
2022-04-09 23:48:18 +02:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Lenny Maiorani
a51fce6c0f
LibCards+Games: Change name of card type to card suit
...
Playing cards have a `suit` such as `hearts`/`diamonds`, not a
`type`. Make the internal naming consistent with the way playing cards
are typically named.
2022-03-18 23:49:34 +00:00
Lenny Maiorani
56046d3f9b
Libraries: Change enums to enum classes in LibCards
2022-03-18 19:59:43 +01:00
Lenny Maiorani
f912a48315
Userland: Change static const variables to static constexpr
...
`static const` variables can be computed and initialized at run-time
during initialization or the first time a function is called. Change
them to `static constexpr` to ensure they are computed at
compile-time.
This allows some removal of `strlen` because the length of the
`StringView` can be used which is pre-computed at compile-time.
2022-03-18 19:58:57 +01:00
Joe Petrus
011b6df63a
Games: Add MasterWord
...
A simple wordle clone.
2022-03-18 04:55:21 -07:00
Linus Groh
50ad8d2a5a
Hearts: Add icon to settings action
2022-03-18 01:10:16 +01:00
Linus Groh
c19486172d
Applications+Games: Drop ellipsis from settings action
...
There is no second step to complete after activating this action.
2022-03-18 01:10:16 +01:00
Linus Groh
fd60c9fac7
Games: Add reload icon to 'New Game' actions
2022-03-18 01:10:16 +01:00
Andreas Kling
a6a8ba80fc
LibGfx: Rename Color::from_rgba() => Color::from_argb()
...
This matches the rename of RGBA32 to ARGB32. It also makes more sense
when you see it used with 32-bit hexadecimal literals:
Before:
Color::from_rgba(0xaarrggbb)
After:
Color::from_argb(0xaarrggbb)
2022-03-04 23:40:21 +01:00
Andreas Kling
5c4bb03926
LibGfx+GameOfLife: Remove Gfx::make_rgb() and its one user
2022-03-04 23:40:21 +01:00
thankyouverycool
3aa95dd4d5
LibGUI+Apps: Convert Statusbar Labels to Segments
...
Segments inherit from Button and let us add clickable widgets
to status bars. This patch also adds proportional, fixed and
autosized modes for segments and lets the status bar consume
all non-clickable segments for override text.
2022-02-24 19:09:41 +01:00
Lenny Maiorani
27c30ca063
Games: Use default constructors/destructors
...
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-02-16 22:08:55 +00:00
Idan Horowitz
c8ab45e79f
Userland: Run gml-format
...
This brings the existing GML files up to spec with the new requirements
2022-02-13 02:36:35 +02:00
Vitaly Dyachkov
32b8795091
LibConfig: Rename pledge_domains(String) => pledge_domain(String)
...
pledge_domains() that takes only one String argument was specifically
added as a shortcut for pledging a single domain. So, it makes sense to
use singular here.
2022-02-11 18:06:39 +01:00
kleines Filmröllchen
6ee597369d
Meta+Userland: Run the GML formatter on CI and pre-commit
...
Now that the GML formatter is both perserving comments and also mostly
agrees to the existing GML style, it can be used to auto-format all the
GML files in the system. This commit does not only contain the scripts
for running the formatting on CI and the pre-commit hook, but also
initially formats all the existing GML files so that the hook is
successfull.
2022-02-07 18:39:50 +01:00
Hendiadyoin1
fbb798f98c
AK: Move integral log2 and exp to IntegerMath.h
2022-02-06 17:52:33 +00:00
kleines Filmröllchen
1a8c8d2383
Chess: Don't use Vector in a literal iterator
2022-01-28 23:40:25 +01:00
David Lindbom
1e773256bf
Snake: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
3a197eea92
Pong: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
ae6d326388
Minesweeper: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
7cb713e043
Hearts: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
2cb0a35dbe
GameOfLife: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
570d63b601
FlappyBug: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
e5c6026a9a
Chess: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
f19a849f39
Breakout: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
David Lindbom
357a36b622
2048: Add link to help pages in menu
2022-01-13 03:45:17 -08:00
Dylan Katz
79cdb5e3c8
2048: Add action icons for New Game and Settings
2022-01-10 00:58:40 -08:00
Dylan Katz
fe3bd062b7
2048: Simplify dialog box when target reached
...
Previously, upon reaching the target, the player is presented with
potentially two dialog boxes: one asking if the user wants to
continue endlessly and another showing the player's statistics,
which would only be shown if the user does not want to continue.
This commit consolidates these into a single dialog box that shows
the relevant statistics and asks the user if they want to continue
endlessly.
2022-01-10 00:58:40 -08:00
Dylan Katz
0fda98dfb3
2048: Fix off-by-1 when opening settings
...
When opening 2048's settings, it translates the target tile into
a power of 2. Previously, it was done incorrectly, causing the
resulting value to be off by one, and the number would increase
every time one opens, saves and closes the settings. With this
change, it now works as expected.
2022-01-10 00:58:40 -08:00
Neolyum
2159385bb6
Spider: Add functionality to automatically move cards to valid stacks
...
This commit adds the possibility to use the secondary mouse button to
let the game move the selected card(s) to the next valid stack.
2022-01-08 00:11:51 +01:00
Jamie Mansfield
1d7d7d39b7
Spider: Redraw completely when drawing cards
...
Spider was only updating the new bounding box area after drawing cards
from the deck - leaving behind a sliver of the old deck.
This was a regression, as the game previously used the old bounding
box, introduced by GH-11153.
2022-01-02 22:26:52 +01:00
r00ster91
fe2ade13e9
Pong: Support W and S keys for movement
2021-12-30 14:36:21 +01:00
Nihal Jere
4574a58f6f
Spider: Add animation when drawing cards
2021-12-24 05:49:52 -08:00
creator1creeper1
615c2cbcce
FlappyBug: Make bitmap() methods return NonnullRefPtrs
...
We are already storing these as NonnullRefPtrs, so we might
as well make the functions return them as such.
2021-12-23 17:42:05 -08:00
creator1creeper1
6f592a32cc
FlappyBug: Propagate errors in Cloud class
...
Move-construct Cloud into the Game class to improve
error handling.
2021-12-23 17:42:05 -08:00
creator1creeper1
ff359c27e3
FlappyBug: Propagate errors in Bug class
...
Move-construct Bug into the Game class to improve
error handling.
2021-12-23 17:42:05 -08:00
creator1creeper1
a67afa735c
FlappyBug: Reposition Game constructor in file
...
This will become important later on because
the constructor will depend on the helper structs
2021-12-23 17:42:05 -08:00
creator1creeper1
81eb450369
FlappyBug: Make helper structs public
...
They will need to be referenced by main later on.
2021-12-23 17:42:05 -08:00
Astraeus-
3ca72831d1
Solitaire: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
bb214dd7e8
Pong: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
07cf17f328
2048: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
c1820770bb
Minesweeper: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
421f91e4ca
Hearts: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
88ce05317f
Chess: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
21335ad720
Spider: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
29d5fee07e
FlappyBug: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
ff3272b60d
GameOfLife: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
a15b86cd01
Snake: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
38f47a79d0
Breakout: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Sam Atkins
0e2fa09f52
Games: Cast unused smart-pointer return values to void
2021-12-05 15:31:03 +01:00
Brian Gianforcaro
cf4fa936be
Everywhere: Use default execpromises argument for Core::System::pledge
2021-11-28 08:04:57 +01:00
Pedro Pereira
d748f2bea2
Spider: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
206847c37d
Solitaire: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
d2e9b122e0
Snake: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
498d8bf1d7
Pong: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
aa2bc6fd47
Minesweeper: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
1211a3a3f3
Hearts: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
ee3b14fc38
GameOfLife: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
2f5f53d1cf
FlappyBug: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
45e29d58e2
Chess: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
5caa9311d7
Breakout: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
d56e4d5145
2048: TRY() all the things in serenity_main() :^)
2021-11-27 17:18:44 +01:00
Pedro Pereira
913b1fad25
FlappyBug: Support mouse clicks for flapping
...
This change allows to play the game using the mouse.
2021-11-24 21:18:31 -08:00
Pedro Pereira
2efec90fb7
Spider: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
302784ebf8
Solitaire: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
2c6dc6d5f6
Snake: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
5934e95402
Pong: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
36056c1cba
Minesweeper: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
0a800cc1bb
Hearts: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
a0db5cca8a
GameOfLife: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
da50667bb5
FlappyBug: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
70a3962ce9
Chess: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
92e9b447f4
Breakout: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
5b33ee20df
2048: Replace construct() with TRY(try_create()) pattern
2021-11-24 13:51:07 +01:00
Pedro Pereira
d68196969d
Pong: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-23 22:56:01 +01:00
Pedro Pereira
3ca2f192af
GameOfLife: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-23 22:55:56 +01:00
Pedro Pereira
8d3059c6f5
Solitaire: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-23 22:55:50 +01:00
Pedro Pereira
c4e49e1955
Snake: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-23 22:55:44 +01:00
Pedro Pereira
7d2170246f
Hearts: Port to LibMain
...
Simplified one pledge() and two unveil() by using TRY().
2021-11-23 22:47:34 +01:00
Pedro Pereira
9d2e169169
FlappyBug+Spider: Update GUI:Application::construct usage
...
Update code to use Main:Arguments directly.
2021-11-23 14:15:00 +01:00
Andreas Kling
21a5fb0fa2
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
...
With this change, System::foo() becomes Core::System::foo().
Since LibCore builds on other systems than SerenityOS, we now have to
make sure that wrappers work with just a standard C library underneath.
2021-11-23 11:33:36 +01:00
Mustafa Quraish
4d302e0e88
Everywhere: Use Application::construct() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
pbrw
71298ad9ba
Spider: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY()
2021-11-22 21:03:45 -08:00
Pedro Pereira
85ae298b85
FlappyBug: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-22 21:02:14 -08:00
Pedro Pereira
55db1811c7
Chess: Port to LibMain
...
Simplified two pledge() and five unveil() by using TRY().
2021-11-22 23:55:42 +01:00
Pedro Pereira
fb5ea617f1
2048: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-22 23:44:55 +01:00
Pedro Pereira
6e6228d40d
Breakout: Port to LibMain
...
Simplified two pledge() and two unveil() by using TRY().
2021-11-22 23:44:09 +01:00
Pedro Pereira
a0c80a6f17
Minesweeper: Port to LibMain
...
Simplified two unveil() and two pledge() by using TRY().
2021-11-22 21:56:31 +01:00
Andreas Kling
216e21a1fa
AK: Convert AK::Format formatting helpers to returning ErrorOr<void>
...
This isn't a complete conversion to ErrorOr<void>, but a good chunk.
The end goal here is to propagate buffer allocation failures to the
caller, and allow the use of TRY() with formatting functions.
2021-11-17 00:21:13 +01:00
Pedro Pereira
b7af536f9b
Minesweeper: Decrease min for Columns and Rows on Custom Game
...
Since the Beginner difficulty has a 9x9 playing field, it is expected
that a Custom Game should allow to create a field with that size.
2021-11-15 14:05:03 +00:00
Pedro Pereira
7b4b060b9c
Minesweeper: Create field from Difficulty enum
...
This change makes it easier to generate a new field. Instead of using
hard-coded values everywhere, we now just need to keep track of
the Difficulty enum value.
2021-11-15 14:05:03 +00:00
Pedro Pereira
1c29633110
Minesweeper: Turn difficulty menu into checkable actions
...
This change makes use of checkable actions to specify the current
selected difficulty for the game.
2021-11-15 14:05:03 +00:00
Pedro Pereira
557075465c
Minesweeper: Add "Custom game..." difficulty
...
This adds a dialog window which allows us to customize the size of the
board and the amount of mines that will be placed.
The current max amount of mines is 50% of the total number of cells
due to the fact that the generator algorithm takes too long to create a
board for higher percentages of mines.
2021-11-14 23:52:55 +00:00
Camron
5137f96bd6
Solitaire: Fix 3 card draw from reversing after an undo
...
Solitaire: Fix 3 card draw from reversing after an undo
Co-Authored-By: Tim Flynn <trflynn89@pm.me>
2021-11-10 20:15:09 -08:00
Andreas Kling
8b1108e485
Everywhere: Pass AK::StringView by value
2021-11-11 01:27:46 +01:00
Andreas Kling
235f39e449
LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()
...
This was used in a lot of places, so this patch makes liberal use of
ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-08 00:35:27 +01:00
Ben Wiederhake
3796d417e0
Demos+DevTools+Games: Fix visibility of Object-derivative constructors
...
Derivatives of Core::Object should be constructed through
ClassName::construct(), to avoid handling ref-counted objects with
refcount zero. Fixing the visibility means that misuses like this are
more difficult.
2021-11-02 22:56:53 +01:00
Ben Wiederhake
6b75a4dfc3
Everywhere: Mark overridden methods 'override'
...
This is good practice, and fixes some IDE warnings.
2021-11-02 22:56:53 +01:00
Musab Kılıç
39afbceb53
Minesweeper: Set time label to a fixed width
...
This ensures the label width doesn't sporadically change as time elapses
2021-10-29 23:02:24 +03:00
Filiph Sandström
d6a0726302
Everywhere: Rename left/right-click to primary/secondary
...
This resolves #10641 .
2021-10-27 22:05:58 +03:00
Mohsan Ali
d609dde7b0
2048: Let user decide if he wants to continue the game
...
Before game finish when a player has reached target tile,
Now player will be able to decide if he wants to continue or not
2021-10-05 13:27:57 +03:30
Matheus Vinicius
567104607c
Breakout: Tag fallthrough statement
...
Tag key changes with fallthrough statement to document the intention.
2021-09-15 14:22:34 +00:00
Matheus Vinicius
ef3f9b24dd
Breakout: Add possibility to play with A and D
...
This change will make the player able to control the game with
A and D keys, in addition to the current arrow keys and mouse.
2021-09-15 14:22:34 +00:00
Mustafa Quraish
0f749681a9
Everywhere: Use my fancy new serenityos.org email :^)
2021-09-13 20:51:50 +00:00
Damien Firmenich
61f573fa67
Breakout: Improve collision response between ball and paddle
...
When the ball hits the side of the paddle, it would get stuck because
the paddle moves faster than the ball. This commit forces the post-
collision vertical velocity of the ball to be going up and makes sure
that new ball's y-position is higher than in the previous frame.
2021-09-10 22:08:22 +02:00
Ben Wiederhake
9c3da7a3e3
Pong: Switch to global tracking
...
When I play Pong, I don't really pay attention to whether my mouse is in
the Pong window. That means that sometimes, annoyingly, the window loses
my mouse, and I lose control of the paddle. Gasp! D:
This commit teaches Pong the wonders of global mouse tracking, thus
enabling the player to focus solely on the game.
2021-09-08 23:59:08 +02:00
Thitat Auareesuksakul
95ff65e211
Solitaire: Add Auto-Collect gameplay option
...
Add the option for players to enable automatic collection of eligible
cards to their foundation pile with a single click of that card.
2021-09-06 21:39:24 +02:00
Sam Atkins
e2c32a6c65
Everywhere: Use my shiny new serenityos.org email :^)
2021-09-03 12:22:36 +02:00
Musab Kılıç
1179d5d921
GameOfLife: Don't enable rotate button if a pattern isn't selected
2021-08-31 15:46:58 +01:00
Andreas Kling
0de35db0f1
Minesweeper: Use AK::get_random_uniform() instead of rand()
2021-08-30 18:35:36 +02:00
Andreas Kling
d3d170851d
Snake: Use AK::get_random_uniform() instead of rand()
2021-08-30 18:35:36 +02:00
Luke Wilde
041007e9f6
2048: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
c0c33a4604
Spider: Remove wpath and cpath pledges and pledge earlier
...
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
34dc275005
Solitaire: Remove wpath and cpath pledges and pledge earlier
...
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
4332b35798
Chess: Perform pledges earlier
2021-08-28 12:22:16 +04:30
Luke Wilde
fd51a3cf15
FlappyBug: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
5d6fccc52b
GameOfLife: Add pledge and unveil
2021-08-28 12:22:16 +04:30
Luke Wilde
7a0fbb94b6
Pong: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
efe0a3d415
Snake: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Luke Wilde
9d428a65d1
Minesweeper: Remove wpath and cpath pledges
...
With the move to LibConfig, these are no longer needed.
2021-08-28 12:22:16 +04:30
Mustafa Quraish
17299db61a
Hearts: Remove wpath
and cpath
priviliges
...
There are no longer needed since the config file is not being
modified by the application directly.
2021-08-27 23:17:05 +02:00
Mustafa Quraish
0af3855fb9
Hearts: Use LibConfig instead of Core::ConfigFile
2021-08-27 23:17:05 +02:00
Mustafa Quraish
4bd9ac1f66
Pong: Remove unused Core::ConfigFile imports
...
This application was including, opening and unveiling the path for
a config file, however it never actually reads or saves anything
from the configuration file.
Since it's easy enough to add it back later if needed, probably
makes sense to remove the unused code right now?
2021-08-27 12:45:50 +02:00
Mustafa Quraish
998d3a98ec
Spider: Use LibConfig instead of Core::ConfigFile
...
There was a lot of error handling here previously when writing to
a config file failed, but this was removed since we have no way of
conveying a `Config::write` failure from the ConfigServer.
2021-08-27 12:45:50 +02:00
Mustafa Quraish
458471cc37
Snake: Use LibConfig instead of Core::ConfigFile
2021-08-27 12:45:50 +02:00
Ralf Donau
a6fc80f069
Games: Remove unveiling /tmp/portal/config
...
Config::pledge_domains is applied before, hence /tmp/portal/config
can and should be veiled.
2021-08-26 21:40:39 +02:00
Ralf Donau
5a0be07cf0
FlappyBug: Use LibConfig instead of Core::ConfigFile
2021-08-26 19:54:50 +02:00
Thitat Auareesuksakul
f119c5580a
Solitaire: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Thitat Auareesuksakul
573d14b7b5
Chess: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Thitat Auareesuksakul
666397e1a7
2048: Use LibConfig instead of Core::ConfigFile
2021-08-26 16:39:22 +02:00
Andreas Kling
827bf5232e
Minesweeper: Use LibConfig instead of Core::ConfigFile
2021-08-26 00:54:28 +02:00
Ralf Donau
9bef96748d
Games: Make cpath appear once in the pledge promises
2021-08-22 23:39:41 +02:00