mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Piano: Port to LibMain
This commit is contained in:
parent
61408e2397
commit
41b80f3d85
2 changed files with 6 additions and 7 deletions
|
@ -22,15 +22,14 @@
|
|||
#include <LibGUI/Menubar.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <LibSystem/Wrappers.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
if (pledge("stdio thread rpath cpath wpath recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
TRY(System::pledge("stdio thread rpath cpath wpath recvfd sendfd unix", nullptr));
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
auto app = GUI::Application::construct(arguments.argc, arguments.argv);
|
||||
|
||||
TrackManager track_manager;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue