mirror of
https://github.com/BluTac10/Xbox-Neo.git
synced 2026-06-14 22:23:08 +00:00
fix: prevent crash when copying version when no ingame
This commit is contained in:
@@ -2056,7 +2056,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
case 'B':
|
||||
std::wstring version = std::wstring(VER_BRANCHVERSION_STR_W) + L"/" + std::wstring(VER_PRODUCTVERSION_STR_W);
|
||||
Screen::setClipboard(version);
|
||||
if (pMinecraft->gui)
|
||||
if (pMinecraft->gui && app.GetGameStarted())
|
||||
{
|
||||
const int primaryPad = ProfileManager.GetPrimaryPad();
|
||||
pMinecraft->gui->addMessage(L"Copied version to clipboard", primaryPad);
|
||||
|
||||
Reference in New Issue
Block a user