diff options
| author | Simon <simon@hardwired.org.uk> | 2011-04-08 12:10:35 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-08 12:10:35 (GMT) |
| commit | f8f8b71869cd7d774d12b61e154a854a32a54074 (patch) | |
| tree | dc3b248991bb416ba2885d6464298f233e62de52 /src | |
| parent | c36c90e800e5ce199efe0d375748b52fb740d686 (diff) | |
| download | powder-f8f8b71869cd7d774d12b61e154a854a32a54074.zip powder-f8f8b71869cd7d774d12b61e154a854a32a54074.tar.gz | |
Re-add install hotkey, removed in astyle commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2457,6 +2457,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; |
