Clear SDK Launcher console on launch

Clear session
This commit is contained in:
Kawe Mazidjatari 2022-11-23 12:30:38 +01:00
parent 6eb31ad881
commit 484f6a779a

View File

@ -523,6 +523,10 @@ void CUIBaseSurface::LaunchGame(Forms::Control* pSender)
{ {
CUIBaseSurface* pSurface = reinterpret_cast<CUIBaseSurface*>(pSender->FindForm()); CUIBaseSurface* pSurface = reinterpret_cast<CUIBaseSurface*>(pSender->FindForm());
pSurface->m_LogList.clear(); // Clear console.
pSurface->m_ConsoleListView->SetVirtualListSize(0);
pSurface->m_ConsoleListView->Refresh();
fs::path cfgPath = fs::current_path() /= "platform\\cfg\\startup_launcher.cfg"; fs::path cfgPath = fs::current_path() /= "platform\\cfg\\startup_launcher.cfg";
ifstream cfgFile(cfgPath); ifstream cfgFile(cfgPath);