Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-22 22:14:02 (14 years 2 months ago)
Author:Rekursor
Commit:44
Parents: 43
Message:Incorporated Buche boot file detection filtering. added first logic increment for wiring the new tabs, sdtill in progress...
Changes:
M/trunk/ChameleonPrefPane/Sources/process.cpp

File differences

trunk/ChameleonPrefPane/Sources/process.cpp
151151
152152
153153
154
154
155155
156
157
158
159
156
157
158
159
160
161
162
163
164
165
166
160167
161168
162169
163170
164171
165172
166
167173
168174
169175
partInfo.fsType()!="Apple_Free"
)
{
std::string DiskLabel(label);
std::string DiskLabel(label), UnixPath, WinPath;
DiskLabel.erase( DiskLabel.find_last_not_of(" ") + 1);
std::string UnixPath = "/Volumes/" + DiskLabel + "/usr/bin/man";
std::string WinPath = "/Volumes/" + DiskLabel + "/Windows/system.ini";
if (fileExists(UnixPath) || fileExists(WinPath))
bool found=false;
// early bail out if we found what we need:
if (fileExists((UnixPath = "/Volumes/" + DiskLabel + "/usr/bin/man")))
found=true;
else if ((strstr(label,"System Reserved") ) || // don't filter system reserved windows 7 boot parts
fileExists((WinPath="/Volumes/" + DiskLabel + "/Windows/system.ini")))
found=true;
else if (strstr(fsType,"Linux") && !strstr(fsType, "Linux_Swap"))
found=true; // Added Linux case
if (found)
{ //check if one of them exists
if (partInfo.label().size()==0) partInfo.label("Untitled");
if(_hiddenParts.length()==0 ||
_hiddenParts.find(partInfo.toHdStr()) == std::string::npos)
_partList.push_back(partInfo);
}
}
}
}

Archive Download the corresponding diff file

Revision: 44