/* * Copyright (C) 2020-2022 The opuntiaOS Project Authors. * + Contributed by Nikita Melekhin * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Managers/InitManager.h" #ifdef TARGET_DESKTOP #define LAUNCH_PATH "/System/dock" #elif TARGET_MOBILE #define LAUNCH_PATH "/System/homescreen" #endif int main() { WinServer::InitManager::load_screen(); auto* event_loop = new LFoundation::EventLoop(); WinServer::InitManager::load_core_component(socket(PF_LOCAL, 0, 0)); WinServer::InitManager::load_core_component(); WinServer::InitManager::load_core_component(); WinServer::InitManager::load_core_component(); WinServer::InitManager::load_core_component(); #ifdef TARGET_MOBILE WinServer::InitManager::load_core_component(); #endif WinServer::InitManager::load_core_component(); WinServer::InitManager::load_core_component(); WinServer::InitManager::load_core_component(); WinServer::InitManager::add_widget(); WinServer::InitManager::add_widget(); WinServer::InitManager::launch_app(LAUNCH_PATH); WinServer::LoadingScreen::destroy_the(); return event_loop->run(); }