Workbook: big pile of rendering cleanups
[AROS.git] / arch / all-ios / bootstrap / filesystem.m
blob3001f7a955c0ed1f42100d7bc36c078a85290fa5
1 /*
2  *  filesystem.c
3  *  AROS
4  *
5  *  Created by Pavel Fedin on 10/13/10.
6  *  Copyright 2010 AROS Development Team. All rights reserved.
7  *
8  */
10 #import <Foundation/Foundation.h>
12 #include "filesystem.h"
14 int SetRootDirectory(void)
16     BOOL ret;
18     NSString *home = NSHomeDirectory();
19     NSString *dir = [home stringByAppendingPathComponent:@"Documents/AROS"];
20     NSFileManager *fm = [NSFileManager defaultManager];
22     ret = [fm changeCurrentDirectoryPath:dir];
23     [fm release];
25     return !ret;