r5sdk/r5dev/sdklauncher/sdklauncher.h
Kawe Mazidjatari 11652d015d SDK launcher progress
* Fixed compiler error when trying to compile SDK Launcher in debug (static lib was not compiled with static link runtime).
* Documented most stuff in basepanel.cpp
* Split some logic into dedicated functions in basepanel.cpp
* Implemented VDF parser from Matthias Moeller.
* Parse playlist file and load all playlists into the combo box.
2022-05-26 01:44:46 +02:00

31 lines
649 B
C++

#pragma once
#include "basepanel.h"
class CLauncher
{
public:
CLauncher()
{
m_svCurrentDir = fs::current_path().u8string();
//m_pMainUI = new CUIBasePanel();
}
~CLauncher()
{
delete[] m_pSurface;
}
bool Setup(eLaunchMode lMode, eLaunchState lState);
bool Setup(eLaunchMode lMode, const string& svCommandLine);
bool Launch();
CUIBaseSurface* GetMainSurface() const { return m_pSurface; }
CUIBaseSurface* m_pSurface;
private:
string m_svWorkerDll;
string m_svGameExe;
string m_svCmdLine;
string m_svCurrentDir;
};
inline CLauncher* g_pLauncher = new CLauncher();