Skip to content

Commit

Permalink
Adding support for command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayingKarrde committed Mar 31, 2021
1 parent b782e86 commit f1a8592
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion LaunchPegasus.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ Gui -Caption

Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%

RunWait, pegasus-fe.exe
args =

for n, param in A_Args ; For each parameter:
{
args = %args% %param%
}

RunWait, pegasus-fe.exe %args%
ExitApp

11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ This is a series of compiled scripts that make the Pegasus experience on Windows
- Optional Windows launcher to help with launching Steam games

## How to use
Download the latest zip from the releases page and unzip directly into your Pegasus directory. Run Pegasus with the LaunchPegasus.exe
Download the latest zip from the releases page and unzip directly into your Pegasus directory. Run Pegasus with the LaunchPegasus.exe.

Launch commands that work with Pegasus can be used with LaunchPegasus.exe also. For example

LaunchPegasus.exe

## PegasusGamesLauncher
PegasusGamesLauncher.exe is primarily intended for those that wish to manage their Steam games via LaunchBox. This allows for the curation of Steam metadata and art/videos as well as allow Pegasus to track time played for Steam games.
Expand All @@ -19,9 +23,12 @@ Simply set up a new emulator in LaunchBox called Steam (or whatever you like), w
![LaunchBox setup](https://i.imgur.com/wHjl9re.png)

## Caveats
Currently the tool does not support Pegasus switches such as portable or kiosk modes. Portable mode can, however, be activated simply by placing an empty txt file called portable.txt in the same directory as Pegasus.
PegasusGamesLauncher needs 10 seconds after loading in order to read the active window. Therefore if you exit the game quickly after launching, or the game takes longer than 10 seconds to load, the program won't exit correctly and will need to be force closed to restore Pegasus. This is being worked on for future versions.

## Version history
v0.3
- Adding support for Pegasus launch commands

v0.2
- Simplified experience so only one file is needed for the seamless experience
- Archived older scripts method
Expand Down

0 comments on commit f1a8592

Please sign in to comment.