Rev 6806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6806 | Rev 6955 | ||
---|---|---|---|
Line 177... | Line 177... | ||
177 | kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title); |
177 | kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title); |
178 | } |
178 | } |
Line 179... | Line 179... | ||
179 | 179 | ||
180 | void EventRunApp(dword appid) |
180 | void EventRunApp(dword appid) |
181 | { |
181 | { |
- | 182 | dword app_path = app_path_collection.get(appid); |
|
- | 183 | ||
- | 184 | dword param_pos = strchr(app_path, '|'); |
|
- | 185 | if (param_pos) { |
|
- | 186 | ESBYTE[param_pos] = NULL; |
|
- | 187 | param_pos++; |
|
- | 188 | } |
|
- | 189 | ||
- | 190 | if (file_exists(app_path)) |
|
182 | if (file_exists(app_path_collection.get(appid))) { |
191 | { |
- | 192 | io.run(app_path, param_pos); //0 or offset |
|
183 | io.run(app_path_collection.get(appid), ""); |
193 | if (param_pos) ESBYTE[param_pos - 1] = '|'; |
184 | } |
194 | } |
- | 195 | else |
|
185 | else { |
196 | { |
186 | notify("'Application not found' -E"); |
197 | notify("'Application not found' -E"); |
- | 198 | } |
|
187 | } |
199 | |
Line 188... | Line 200... | ||
188 | } |
200 | } |