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

set executable filename for Linux #111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SandmanDreams
Copy link
Contributor

No description provided.

#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))
Copy link
Owner

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);
Copy link
Owner

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");
Copy link
Owner

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.

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

Successfully merging this pull request may close these issues.

2 participants