386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
OFString *home;
if ((home = [env objectForKey: @"HOME"]) == nil)
@throw [OFNotImplementedException
exceptionWithSelector: _cmd
object: self];
[path deleteCharactersInRange: of_range(0, 1)];
[path prependString: home];
}
[path makeImmutable];
return path;
# elif defined(OF_WINDOWS)
|
|
|
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
OFString *home;
if ((home = [env objectForKey: @"HOME"]) == nil)
@throw [OFNotImplementedException
exceptionWithSelector: _cmd
object: self];
[path deleteCharactersInRange: OFMakeRange(0, 1)];
[path prependString: home];
}
[path makeImmutable];
return path;
# elif defined(OF_WINDOWS)
|
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
|
OFString *home;
if ((home = [env objectForKey: @"HOME"]) == nil)
@throw [OFNotImplementedException
exceptionWithSelector: _cmd
object: self];
[path deleteCharactersInRange: of_range(0, 1)];
[path prependString: home];
}
[path appendString: @"/Preferences"];
[path makeImmutable];
return path;
|
|
|
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
|
OFString *home;
if ((home = [env objectForKey: @"HOME"]) == nil)
@throw [OFNotImplementedException
exceptionWithSelector: _cmd
object: self];
[path deleteCharactersInRange: OFMakeRange(0, 1)];
[path prependString: home];
}
[path appendString: @"/Preferences"];
[path makeImmutable];
return path;
|