1 #ifndef __LAUNCHER_INTERFACE_H__
2 #define __LAUNCHER_INTERFACE_H__
10 class LauncherInterface
13 virtual int Initialize(bool standalone) = 0;
14 virtual void Dispose() = 0;
15 virtual int RunManagedLauncher() = 0;
16 virtual int Launch(const char* root, const char* path, int argc, char* argv[]) = 0;
28 class LaunchpadAdapter
31 virtual void LoaderMain(int argc, char* argv[]) = 0;
32 std::function<void()> OnCreate = nullptr;
33 std::function<void(const AppInfo&, int, char**)> OnLaunch = nullptr;
34 std::function<void(const AppInfo&, int, char**)> OnTerminate = nullptr;
37 extern LaunchpadAdapter& Launchpad;
39 } // namespace runtime
42 #endif // __LAUNCHER_INTERFACE_H__