equal
deleted
inserted
replaced
58 } |
58 } |
59 } |
59 } |
60 } |
60 } |
61 #endif |
61 #endif |
62 |
62 |
|
63 // In S60 working directory should be initalized to C:\private\<UID> by OpenC |
|
64 // But for some reason this does not seem to work if captain binary is in rom. |
|
65 #ifdef __SYMBIAN32__ |
|
66 const char* const IAD_BOOT_FLAG = "c:\\private\\200211DC\\iadboot.dat"; |
|
67 #else |
|
68 const char* const IAD_BOOT_FLAG = "iadboot.dat"; |
|
69 #endif /* __SYMBIAN32__ */ |
|
70 |
|
71 |
63 int main(int ac, char** av) |
72 int main(int ac, char** av) |
64 { |
73 { |
65 JELOG2(EJavaCaptain); |
74 JELOG2(EJavaCaptain); |
66 |
75 |
67 #ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS |
76 #ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS |
70 |
79 |
71 // check if started by IAD installation |
80 // check if started by IAD installation |
72 if (ac == 2 && strcmp(av[1], "iad") == 0) |
81 if (ac == 2 && strcmp(av[1], "iad") == 0) |
73 { |
82 { |
74 LOG(EJavaCaptain, EInfo, "creating iad boot event flag"); |
83 LOG(EJavaCaptain, EInfo, "creating iad boot event flag"); |
75 int fd = open("iadboot.dat", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); |
84 int fd = open(IAD_BOOT_FLAG, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); |
76 if (fd < 0) |
85 if (fd < 0) |
77 { |
86 { |
78 ELOG1(EJavaCaptain, "create boot event flag failed: %s", strerror(errno)); |
87 ELOG1(EJavaCaptain, "create boot event flag failed: %s", strerror(errno)); |
79 } |
88 } |
80 else |
89 else |