Chameleon Applications

Chameleon Applications Commit Details

Date:2011-12-04 01:04:56 (3 years 14 days ago)
Author:Rekursor
Commit:393
Parents: 392
Message:Linked cd boot creator directories to boot extra directory
Changes:
M/trunk/ChameleonPrefPane/Sources/BootSetupController.mm
M/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.h
M/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm

File differences

trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm
239239
240240
241241
242
243
242
243
244
245
244246
245247
246248
[mStatusText setTextColor: [NSColor grayColor] ];
NSString* ns = [ [NSString alloc] initWithUTF8String:BootProp::instance().propFilePath() ];
[mStatusText setStringValue: [NSString stringWithFormat: @"bootConfig: %@", ns] ];
[[BootSetupController instance]->mBootConfigPathText setStringValue:
[[NSString alloc] initWithUTF8String: BootProp::instance().propFilePath()] ];
BootSetupController* bsc = [BootSetupController instance];
[bsc->mBootConfigPathText setStringValue: [[NSString alloc] initWithUTF8String: BootProp::instance().propFilePath()] ];
[bsc->mBootExtraPathText setStringValue: [[bsc->mBootConfigPathText stringValue] stringByDeletingLastPathComponent] ];
[bsc->mBootCdbootPathText setStringValue: [[bsc->mBootConfigPathText stringValue] stringByDeletingLastPathComponent]];
}
trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.h
1414
1515
1616
17
1718
1819
1920
// Constants definition
#define keyForceBootConfigPath @"forceBootConfigPath"
#define keyCdBootPath @"CdBootPath"
#define keySwapHD01 @"swapHD01"
#define keySwapHD02 @"swapHD02"
#define keyUseFrozenParts @"useFrozenParts"
trunk/ChameleonPrefPane/Sources/BootSetupController.mm
6868
6969
7070
71
71
72
7273
7374
7475
......
244245
245246
246247
248
249
250
247251
248252
249253
forKey: keyForceBootConfigPath];
[mBootConfigPathText setEnabled: val ? true : false];
[mBootConfigPathText setEditable: val ? true : false];
[mBootExtraPathText setStringValue: [[mBootConfigPathText stringValue] stringByDeletingLastPathComponent]];
[mBootCdbootPathText setStringValue: [[mBootConfigPathText stringValue] stringByDeletingLastPathComponent]];
}
//--------------------------------------------------------------------------
if(f)
{
[mBootConfigPathText setStringValue:f];
[mBootExtraPathText setStringValue: [f stringByDeletingLastPathComponent] ];
[mBootCdbootPathText setStringValue: [[mBootConfigPathText stringValue] stringByDeletingLastPathComponent]];
[f release];
}
}

Archive Download the corresponding diff file

Revision: 393