mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:30:53 +01:00
36 lines
642 B
C++
36 lines
642 B
C++
#pragma once
|
|
|
|
#include "Loader/ExeLoader.h"
|
|
#include <TiltedCore/Filesystem.hpp>
|
|
#include <TiltedCore/Stl.hpp>
|
|
|
|
namespace launcher
|
|
{
|
|
namespace fs = std::filesystem;
|
|
|
|
enum class Result
|
|
{
|
|
kSuccess,
|
|
kBadPlatform,
|
|
kBadInstall
|
|
};
|
|
|
|
// stays alive through the entire duration of the game.
|
|
struct LaunchContext
|
|
{
|
|
fs::path exePath;
|
|
fs::path gamePath;
|
|
TiltedPhoques::String Version;
|
|
ExeLoader::TEntryPoint gameMain = nullptr;
|
|
};
|
|
|
|
LaunchContext* GetLaunchContext();
|
|
|
|
bool LoadProgram(LaunchContext&);
|
|
int StartUp(int argc, char** argv);
|
|
|
|
void InitClient();
|
|
|
|
bool HandleArguments(int, char**, bool&);
|
|
|
|
} // namespace launcher
|