Chameleon Applications

Chameleon Applications Commit Details

Date:2010-02-16 16:58:36 (14 years 1 month ago)
Author:DieBuche
Commit:114
Parents: 113
Message:Fixes for untitled disks.
Changes:
M/trunk/ChameleonPrefPane/Sources/ShellProcess.cpp

File differences

trunk/ChameleonPrefPane/Sources/ShellProcess.cpp
103103
104104
105105
106
106
107107
108108
109109
......
155155
156156
157157
158
158159
159
160
161
160
161
162
162163
163164
164165
......
176177
177178
178179
180
179181
180182
181183
PartitionInfo partInfo;
char line[1024]="";
char label[32]="", fsType[32]="" ;
char label[32]="Untitled", fsType[32]="" ;
size_t len=0;
int disk =0, part=0;
int label_pos=0, size_pos=0;
std::replace(fsType, fsType+strlen(fsType), '_', ' ' );
partInfo.fsType(fsType);
std::string diskLabel(trim(label));
if (partInfo.label().size()==0) partInfo.label("Untitled");
std::string diskLabel(trim(label));
if (diskLabel=="" && partInfo.fsType()!="EFI" && partInfo.fsType()!="Apple partition map") {
diskLabel="Untitled";
}
bool found=false;
// early bail out if we found what we need: DON't make any assumption
// that Windows is the name of WIN32 bootable disk dir ...
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: 114