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

Windows compatibility #46

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

Windows compatibility #46

wants to merge 2 commits into from

Conversation

akainth015
Copy link

When I tried to compile tt on Windows, I faced the following bugs.

  1. The word list was not found, because the path passed to readPackedFile was formatted as words\1000en instead of words/1000en. This is problematic since the packedFiles map has hard-coded keys in the words/1000en format. To fix this bug, I replaced the call to filepath.Join with a hard-coded /.
  2. The home directory was not found because the HOME environment variable is not defined on Windows. I was able to define $env:HOME = $env:USERPROFILE and use tt successfully, so I updated the program to perform this substitution when the HOME environment variable is not defined.

These two changes make tt at least minimally usable on Windows!

@akainth015
Copy link
Author

I suppose this PR would be incomplete without a screenshot, so here it is:

image

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.

1 participant