mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[misc] add alternative test mode
* Also fix some typos and unwanted messages
This commit is contained in:
parent
0e6a5b5871
commit
129aa64394
3 changed files with 14 additions and 11 deletions
13
src/rufus.c
13
src/rufus.c
|
@ -3312,6 +3312,14 @@ relaunch:
|
|||
SendMessage(hMainDialog, WM_COMMAND, IDC_LOG, 0);
|
||||
continue;
|
||||
}
|
||||
#if defined(_DEBUG)
|
||||
// Ctrl-T => Alternate Test mode that doesn't require a full rebuild
|
||||
if ((ctrl_without_focus || ((GetKeyState(VK_CONTROL) & 0x8000) && (msg.message == WM_KEYDOWN)))
|
||||
&& (msg.wParam == 'T')) {
|
||||
uprintf("TEST");
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (no_focus && (msg.wParam != VK_CONTROL))
|
||||
ctrl_without_focus = FALSE;
|
||||
|
@ -3409,11 +3417,6 @@ relaunch:
|
|||
}
|
||||
// Alt-L => Force Large FAT32 format to be used on < 32 GB drives
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'L')) {
|
||||
uprintf("DAFUQ!?!? LPARAM = 0x%08X", msg.lParam);
|
||||
|
||||
if ((msg.message == WM_SYSKEYDOWN) && !(msg.lParam & 0x20000000)) {
|
||||
uprintf("KIDDING ME?!?!.");
|
||||
}
|
||||
force_large_fat32 = !force_large_fat32;
|
||||
WriteSettingBool(SETTING_FORCE_LARGE_FAT32_FORMAT, force_large_fat32);
|
||||
PrintStatusTimeout(lmprintf(MSG_254), force_large_fat32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue