mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[core] add a cheat mode (Alt-P) to toggle GPT ESP to Basic Data
* Windows 10 or later *ONLY* * Also don't report a GPT partition name if it's empty
This commit is contained in:
parent
22fb8febc5
commit
23057f6124
6 changed files with 205 additions and 16 deletions
10
src/rufus.c
10
src/rufus.c
|
@ -3286,7 +3286,7 @@ relaunch:
|
|||
while(GetMessage(&msg, NULL, 0, 0)) {
|
||||
static BOOL ctrl_without_focus = FALSE;
|
||||
BOOL no_focus = (msg.message == WM_SYSKEYDOWN) && !(msg.lParam & 0x20000000);
|
||||
// ** ****** **** ** **********
|
||||
// ** ****** **** *************
|
||||
// .,ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
|
||||
// Sigh... The things one need to do to detect standalone use of the 'Alt' key.
|
||||
|
@ -3452,6 +3452,14 @@ relaunch:
|
|||
SaveISO();
|
||||
continue;
|
||||
}
|
||||
// Alt-P => Toggle GPT ESP to and from Basic Data type (Windows 10 or later)
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'P')) {
|
||||
int index = ComboBox_GetCurSel(hDeviceList);
|
||||
DWORD DeviceNum = (DWORD)ComboBox_GetItemData(hDeviceList, index);
|
||||
if (ToggleEsp(DeviceNum))
|
||||
CyclePort(index);
|
||||
continue;
|
||||
}
|
||||
// Alt-Q => Enable file indexing (for file systems that support it)
|
||||
// For multiple reasons, file indexing is disabled by default
|
||||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'Q')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue