@@ -32,6 +32,7 @@ fn interpret_args() {
3232 eidolon:: update_steam ( steam_dirs) ;
3333 eidolon:: update_lutris ( ) ;
3434 } ,
35+ "version" => print_version ( ) ,
3536 "add" => eidolon:: add_game ( & args[ 2 ] , & args[ 3 ] , false ) ,
3637 "rm" => eidolon:: rm_game ( & args[ 2 ] ) ,
3738 "help" => print_help ( ) ,
@@ -61,6 +62,11 @@ fn check_args_num(num:usize, command:&str) -> bool {
6162 true
6263 }
6364}
65+ fn print_version ( ) {
66+ println ! ( "Eidolon Game Launcher v1.2.5" ) ;
67+ println ! ( "Created by Nicholas Hickman" ) ;
68+ println ! ( "For support, file an issue at https://github.com/nicohman/eidolon or email nico.hickman@gmail.com" ) ;
69+ }
6470fn show_menu ( menu_command : String , prefix_command : String ) {
6571 //Creates a list of all installed games, then pipes them to a dmenu rofi
6672 let mut entries = fs:: read_dir ( eidolon:: get_home ( ) + "/.config/eidolon/games" )
@@ -104,7 +110,7 @@ fn show_menu(menu_command: String, prefix_command:String) {
104110}
105111fn print_help ( ) {
106112 println ! ( "Commands:" ) ;
107- println ! ( "update : updates registry with installed steam games" ) ;
113+ println ! ( "update : updates registry with installed steam games and lutris wine games " ) ;
108114 println ! ( "add [name] [file] : adds game to registry" ) ;
109115 println ! ( "list : lists installed games" ) ;
110116 println ! ( "rm [name] : removes game from registry" ) ;
@@ -113,6 +119,7 @@ fn print_help() {
113119 println ! ( "import [dir] : attempts to import in game directory just from name of location." ) ;
114120 println ! ( "imports [dir] : imports in all game directories within given directory" ) ;
115121 println ! ( "wine_add [name] [.exe] : adds windows exe to be run under wine to the registry" ) ;
122+ println ! ( "version : displays the current eidolon version and contact info" ) ;
116123 println ! ( "help : show this screen" ) ;
117124}
118125
0 commit comments