mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-18 03:50:49 +00:00
feat: add version display and copy-to-clipboard functionality
Add version string (branch/version) to the debug overlay when F3 is active. Also add a new keyboard shortcut (B key while F3 is held) to copy the version string to the clipboard and show a confirmation message. This improves debugging and support by making version information easily accessible.
This commit is contained in:
@@ -2053,6 +2053,16 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
f3ComboUsed = true;
|
||||
}
|
||||
break;
|
||||
case 'B':
|
||||
std::wstring version = std::wstring(VER_BRANCHVERSION_STR_W) + L"/" + std::wstring(VER_PRODUCTVERSION_STR_W);
|
||||
Screen::setClipboard(version);
|
||||
if (pMinecraft->gui)
|
||||
{
|
||||
const int primaryPad = ProfileManager.GetPrimaryPad();
|
||||
pMinecraft->gui->addMessage(L"Copied version to clipboard", primaryPad);
|
||||
}
|
||||
f3ComboUsed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user