Index: trunk/ChameleonPrefPane/Sources/ShellProcess.cpp =================================================================== --- trunk/ChameleonPrefPane/Sources/ShellProcess.cpp (revision 58) +++ trunk/ChameleonPrefPane/Sources/ShellProcess.cpp (revision 59) @@ -85,6 +85,10 @@ return szAlias; } + +// uncomment the following line for debug +#define DEBUG_DISKUTIL 0 + //---------------------------------------------------------------- const std::vector& PartitionExtractor::extractPartitions(const char* szHide, const char* szRenamed) @@ -106,7 +110,12 @@ _partList.clear(); if (szHide) hidePartitions(szHide); if (szRenamed) renamedPartitions(szRenamed); + +#if DEBUG_DISKUTIL + this->open("cat /diskutil.txt"); +#else this->open("diskutil list"); +#endif while(get_line(line, sizeof(line)-1)) { @@ -121,7 +130,7 @@ if (sdisk) { // extract disk number - disk= sdisk[strlen(diskTag)]-'0'; + sscanf(&sdisk[strlen(diskTag)],"%d", &disk); if (disk>=0 && disk #include "file_util.h" //---------------------------------------------------------------- -const int MAX_HD = 10; +const int MAX_HD = 32; //---------------------------------------------------------------- class ShellProcess @@ -66,10 +66,9 @@ bool fromPartitionHdString(const char * inHdStr); std::string toHdStr() const { - std::string buf = "hd(n,m)"; - buf[3]= '0'+disk(); - buf[5]='0'+partition(); - return buf; + char buf[16]=""; + sprintf(buf, "hd(%d,%d)", disk(),partition()); + return std::string(buf); } int imageIndexFromFs() const; protected: Index: trunk/ChameleonPrefPane/Info.plist =================================================================== --- trunk/ChameleonPrefPane/Info.plist (revision 58) +++ trunk/ChameleonPrefPane/Info.plist (revision 59) @@ -17,7 +17,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 2.0 b4 + 2.0 b5 CFBundleSignature ???? CFBundleVersion