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

Make 'bind [KEY] "save quicksave.zds"' work on Linux and Mac OS(?) #22

Closed
Premo36 opened this issue Mar 23, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Premo36
Copy link
Owner

Premo36 commented Mar 23, 2022

The workaround 'bind [KEY] "save quicksave.zds" (see #14 for details) does not work under Linux (and probably also under MacOS, can't test as I don't own a mac), as quicksave.zds gets saved in the home folder and not in the dml 2.x folder. Also the workaround as it is now will still not work as the gzdoom executable installed trough apt (located at /usr/games, which it's just a bash script that execute the real executable at /opt/gzdoom/gzdoom) does not have the "save" folder next to it as all user data is stored in ~/.config/gzdoom.

Could be fixed by using something like this is in the mono version, and warn the user in the readme that as been tested with only recent version of gzdoom/zandronum installed trough apt and that it may not work on older/portable version of those sourceports and that it's not tested under Mac OS:

string homePath = Environment.GetEnvironmentVariable("HOME")

string destinationPath = Path.Combine(homePath, ".config"); 
destinationPath = Path.Combine(destinationPath, executableName)

//Move any .zds file from the home folder to destinationPath
@Premo36 Premo36 added the bug Something isn't working label Mar 23, 2022
@Premo36 Premo36 self-assigned this Mar 23, 2022
@Premo36 Premo36 changed the title Make 'bind [KEY] "save quicksave.zds" work on Linux and Mac OS(?) Make 'bind [KEY] "save quicksave.zds"' work on Linux and Mac OS(?) Mar 23, 2022
Premo36 added a commit that referenced this issue Mar 24, 2022
Re-worked the gzdoom custom quicksave method workaround to work on Linux. (#22)
@Premo36 Premo36 closed this as completed Mar 24, 2022
@Premo36
Copy link
Owner Author

Premo36 commented Mar 24, 2022

Fixed for Linux system that use recent version of gzdoom installed trough apt (or similar). Should work also for Zandronum but is untested. Not fixed for Mac OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant