YaLTeR / bxt-launcher

GUI launcher for Bunnymod XT on Linux
GNU General Public License v3.0
11 stars 4 forks source link

Adds #1 (optional command line arguments) in a rather crude way #2

Closed chinese-soup closed 4 years ago

chinese-soup commented 4 years ago

Hello. First time using Vala.

I've implemented the feature I suggested (#1) in a rather crude way, but then again it shouldn't matter that much since half-life just happily ignores garbage, e.g. stuff like this still loads:

working_directory = /home/unko/.local/share/Steam/steamapps/common/Half-Life argv = ./hl_linux, -steam, adsadasdasdfa, sdfsd, čt, čštgerg, fdgdf, g

The "crude way" consists of adding just a GtkExpander and a GtkEntry for the command line arguments to the window (therefore added another line to the GtkBox) and when the Expander is expanded splitting the GtkEntry value string, iterating over it and adding it to the string array string[] spawn_args.

UI when not expanded: 16257

UI when expanded: 858

Still, any suggestions/critique/rework is very welcome.

chinese-soup commented 4 years ago

closing as per https://github.com/YaLTeR/bxt-launcher/issues/1#issuecomment-642438641