GE Debugger: Allow setting secondary values.

This makes it convenient to update the bufw of textures or similar.
This commit is contained in:
Unknown W. Brackets committed 2022-02-05 19:27:28 -08:00
1 parent 1bb1f34af0
commit 9f434fa14d
2 files changed
+62 -9

No files matched your search

+8
View File
@@ -110,10 +110,18 @@ bool InputBox_GetWString(HINSTANCE hInst, HWND hParent, const wchar_t *title, co
bool InputBox_GetHex(HINSTANCE hInst, HWND hParent, const wchar_t* title, u32 defaultvalue, u32& outvalue)
{
const wchar_t *defaultTitle = L"Input value";
wchar_t temp[256];
wsprintf(temp, L"%08x", defaultvalue);
textBoxContents = temp;
if (title && wcslen(title) <= 0)
windowTitle = defaultTitle;
else if (title && wcslen(title) < 255)
windowTitle = title;
else
windowTitle = defaultTitle;
INT_PTR value = DialogBox(hInst, (LPCWSTR)IDD_INPUTBOX, hParent, InputBoxFunc);
if (value == IDOK)