diff options
| author | Simon <simon@hardwired.org.uk> | 2011-04-06 12:48:41 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-06 12:48:41 (GMT) |
| commit | a2edfa11b8c1f8a7a6755810f53e6e240e207dba (patch) | |
| tree | 28ccbe4376b8c04c2547a2b81926eb76f774e7c5 /src | |
| parent | 5e03aae7b340c31c4c5b2e6f3d1dfc17cd1beba5 (diff) | |
| download | powder-a2edfa11b8c1f8a7a6755810f53e6e240e207dba.zip powder-a2edfa11b8c1f8a7a6755810f53e6e240e207dba.tar.gz | |
Installer
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2459,6 +2459,20 @@ int main(int argc, char *argv[]) break; } } + if (sdl_key=='i' && (sdl_mod & KMOD_CTRL)) + { + if(confirm_ui(vid_buf, "Install Powder Toy", "You are about to install The Powder Toy", "Install")) + { + if(register_extension()) + { + info_ui(vid_buf, "Install success", "Powder Toy has been installed!"); + } + else + { + error_ui(vid_buf, 0, "Install failed - You may not have permission or you may be on a platform that does not support installation"); + } + } + } //if(sdl_key=='d' && isplayer) //{ // death = 1; |
