From 00b6d7a4604e759eb3c92b3ecea608d6fe024b81 Mon Sep 17 00:00:00 2001 From: srs5694 Date: Sun, 26 Jun 2011 22:40:06 -0400 Subject: 0.7.2 release, includes new Linux type code & true GUID generation in Windows --- gdisk.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gdisk.cc') diff --git a/gdisk.cc b/gdisk.cc index 22de86b..98d4980 100644 --- a/gdisk.cc +++ b/gdisk.cc @@ -38,19 +38,22 @@ int main(int argc, char* argv[]) { switch (argc) { case 1: - WinWarning(); cout << "Type device filename, or press to exit: "; device = ReadString(); if (device.length() == 0) exit(0); else if (theGPT.LoadPartitions(device)) { + if (theGPT.GetState() != use_gpt) + WinWarning(); MainMenu(device, &theGPT); } // if/elseif break; case 2: // basic usage - WinWarning(); - if (theGPT.LoadPartitions(argv[1])) + if (theGPT.LoadPartitions(argv[1])) { + if (theGPT.GetState() != use_gpt) + WinWarning(); MainMenu(argv[1], &theGPT); + } // if break; case 3: // usage with "-l" option if (strcmp(argv[1], "-l") == 0) { @@ -433,8 +436,8 @@ void WinWarning(void) { cout << "\a************************************************************************\n" << "Most versions of Windows cannot boot from a GPT disk, and most varieties\n" << "prior to Vista cannot read GPT disks. Therefore, you should exit now\n" - << "unless you understand the implications of converting MBR to GPT, editing\n" - << "an existing GPT disk, or creating a new GPT disk layout!\n" + << "unless you understand the implications of converting MBR to GPT or creating\n" + << "a new GPT disk layout!\n" << "************************************************************************\n\n"; cout << "Are you SURE you want to continue? "; if (GetYN() != 'Y') -- cgit v1.2.1