mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-04 16:53:54 -04:00
[ui] UI redesign
* Better guide the user through the flow of operations * Also follow a concept design by Fahad Al-Riyami * Closes #117
This commit is contained in:
parent
95db209b04
commit
a44518355f
31 changed files with 3114 additions and 3572 deletions
12
src/smart.c
12
src/smart.c
|
@ -312,7 +312,7 @@ static int UsbCypressAtaPassthrough(HANDLE hPhysical, ATA_PASSTHROUGH_CMD* Comma
|
|||
}
|
||||
|
||||
/* The various bridges we will try, in order */
|
||||
AtaPassThroughType pt[] = {
|
||||
AtaPassThroughType ata_pt[] = {
|
||||
{ SatAtaPassthrough, "SAT" },
|
||||
{ UsbJmicronAtaPassthrough, "JMicron" },
|
||||
{ UsbProlificAtaPassthrough, "Prolific" },
|
||||
|
@ -335,10 +335,10 @@ BOOL Identify(HANDLE hPhysical)
|
|||
if (idd == NULL)
|
||||
return FALSE;
|
||||
|
||||
for (i=0; i<ARRAYSIZE(pt); i++) {
|
||||
r = pt[i].fn(hPhysical, &Command, idd, sizeof(IDENTIFY_DEVICE_DATA), SPT_TIMEOUT_VALUE);
|
||||
for (i=0; i<ARRAYSIZE(ata_pt); i++) {
|
||||
r = ata_pt[i].fn(hPhysical, &Command, idd, sizeof(IDENTIFY_DEVICE_DATA), SPT_TIMEOUT_VALUE);
|
||||
if (r == SPT_SUCCESS) {
|
||||
uprintf("Success using %s\n", pt[i].type);
|
||||
uprintf("Success using %s\n", ata_pt[i].type);
|
||||
if (idd->CommandSetSupport.SmartCommands) {
|
||||
DumpBufferHex(idd, sizeof(IDENTIFY_DEVICE_DATA));
|
||||
uprintf("SMART support detected!\n");
|
||||
|
@ -347,9 +347,9 @@ BOOL Identify(HANDLE hPhysical)
|
|||
}
|
||||
break;
|
||||
}
|
||||
uprintf("No joy with: %s (%s)\n", pt[i].type, SptStrerr(r));
|
||||
uprintf("No joy with: %s (%s)\n", ata_pt[i].type, SptStrerr(r));
|
||||
}
|
||||
if (i >= ARRAYSIZE(pt))
|
||||
if (i >= ARRAYSIZE(ata_pt))
|
||||
uprintf("NO ATA FOR YOU!\n");
|
||||
|
||||
_mm_free(idd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue