mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* 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.
31 lines
649 B
C++
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(); |