Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to keep legendary running till game ends? #601

Open
DocMAX opened this issue Sep 12, 2023 · 3 comments
Open

Option to keep legendary running till game ends? #601

DocMAX opened this issue Sep 12, 2023 · 3 comments

Comments

@DocMAX
Copy link

DocMAX commented Sep 12, 2023

I created a script to start a game with legendary. Now i want to use somethinf like "wait $!" to keep the script running until game ends. It would be easy for me if the legendary exe/bin doesn't quit after game launches. Can something like this be implemented? Why does legendary stop it's own process anyway? Thanks.

@loathingKernel
Copy link
Contributor

loathingKernel commented Sep 12, 2023

You can refer to this closed PR for some of the reasons as to why this isn't possible to do in a consistent manner #524.

As a workaround you could parse the a command like with --dry-run and launch the game in your script with reaper https://github.com/Plagman/reaper. Reaper is so simple that you don't even need to compile it, if you change some cpp-isms (use of true), it can happily run as a script through tcc with this shebang #!/usr/bin/tcc -run

@DocMAX
Copy link
Author

DocMAX commented Jan 29, 2024

reaper does the job! thanks!

@DocMAX DocMAX closed this as completed Jan 29, 2024
@DocMAX
Copy link
Author

DocMAX commented Dec 23, 2024

for windows it is difficult. i try to implement a windows version of reaper https://github.com/DocMAX/winreaper
but we really need it build into legendary!

@DocMAX DocMAX reopened this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants