mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27: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
|
@ -21,4 +21,4 @@ set(SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_app(Piano ICON app-piano)
|
serenity_app(Piano ICON app-piano)
|
||||||
target_link_libraries(Piano LibAudio LibDSP LibGUI)
|
target_link_libraries(Piano LibAudio LibDSP LibGUI LibMain)
|
||||||
|
|
|
@ -22,15 +22,14 @@
|
||||||
#include <LibGUI/Menubar.h>
|
#include <LibGUI/Menubar.h>
|
||||||
#include <LibGUI/MessageBox.h>
|
#include <LibGUI/MessageBox.h>
|
||||||
#include <LibGUI/Window.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) {
|
TRY(System::pledge("stdio thread rpath cpath wpath recvfd sendfd unix", nullptr));
|
||||||
perror("pledge");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto app = GUI::Application::construct(argc, argv);
|
auto app = GUI::Application::construct(arguments.argc, arguments.argv);
|
||||||
|
|
||||||
TrackManager track_manager;
|
TrackManager track_manager;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue