-
Notifications
You must be signed in to change notification settings - Fork 2
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
set executable filename for Linux #111
base: main
Are you sure you want to change the base?
Conversation
#if WINDOWS | ||
string ddExe = Path.Combine(UserSettings.Model.DevilDaggersInstallationDirectory, "dd.exe"); | ||
#elif LINUX | ||
string ddExe = Path.Combine(UserSettings.Model.DevilDaggersInstallationDirectory, "devildaggers"); | ||
#endif | ||
if (!File.Exists(ddExe)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should include a default case, or not perform this check when WINDOWS and LINUX are both undefined. The build will fail otherwise and we might get a Mac build in the future.
@@ -33,7 +33,7 @@ public static void Render() | |||
ImGui.Spacing(); | |||
ImGuiImage.Image(gemOrHomingTexture.Id, new Vector2(16), tintColor); | |||
ImGui.SameLine(); | |||
ImGui.InputInt("Added gems", ref PracticeLogic.State.AdditionalGems, 1); | |||
ImGui.InputInt((PracticeLogic.State.HandLevel is HandLevel.Level2)? Inline.Span($"Added gems({PracticeLogic.State.AdditionalGems+10})") : "Added gems", ref PracticeLogic.State.AdditionalGems, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you open an issue for this? I'm thinking there's probably a better way to make this more clear. I'd also prefer commits/PRs with a single purpose.
Also I'll be refactoring all of the UI soon, so I'm postponing UI changes until then because it'll be a big change.
#if WINDOWS | ||
string ddExe = Path.Combine(UserSettings.Model.DevilDaggersInstallationDirectory, "dd.exe"); | ||
#elif LINUX | ||
string ddExe = Path.Combine(UserSettings.Model.DevilDaggersInstallationDirectory, "devildaggers"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do you know if this differs between distros? I thought it was sometimes called devildaggers.bin
but not sure.
No description provided.