Chameleon Applications

Chameleon Applications Commit Details

Date:2011-11-19 22:00:47 (12 years 5 months ago)
Author:Rekursor
Commit:360
Parents: 359
Message:more swapping bug fixes
Changes:
M/trunk/ChameleonPrefPane/Sources/BootSetupController.mm
M/trunk/ChameleonPrefPane/Sources/PartitionInfoElement.mm
M/trunk/ChameleonPrefPane/Sources/PartitionInfoManager.mm

File differences

trunk/ChameleonPrefPane/Sources/PartitionInfoManager.mm
7474
7575
7676
77
77
7878
7979
8080
{
if (sParts==nil)
{
[PartsInfoMgr resetSwapping];
//[PartsInfoMgr resetSwapping];
NSArray* partArr = [PartitionInfoElement createBSDPartitionList];
sParts = (NSMutableArray*) [PartitionInfoElement extractInfoWithBSDNames: partArr withArray: nil];
[partArr release];
trunk/ChameleonPrefPane/Sources/BootSetupController.mm
131131
132132
133133
134
135
136
137
138
134139
135140
136141
137142
138143
139
140
141
142
143
144144
145145
146146
- (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;
{
if(!BootProp::instance().isValid()) return;
if ([mFreezeParts intValue]==0)
[PartsInfoMgr reload];
else
[self loadFrozenParts ];
if (bSwap)
{
[PartsInfoMgr swapHD:iSrc with: iDst ];
}
if ([mFreezeParts intValue]==0)
[PartsInfoMgr reload];
else
[self loadFrozenParts ];
[ [self chameleon] selectDefaultPartition];
}
trunk/ChameleonPrefPane/Sources/PartitionInfoElement.mm
6262
6363
6464
65
65
6666
6767
6868
-(NSString*) hdString
{
return [NSString stringWithFormat:@"hd(%d,%d)", diskNum, partNum];
return [NSString stringWithFormat:@"hd(%d,%d)", [self diskNumber], [self partitionNumber]];
}
-(void) setDiskNumber: (int) d

Archive Download the corresponding diff file

Revision: 360