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

[bug] marathon #141

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ See the documentations:

## For Developers

When using pon2 as a library, it is necessary to copy `assets` directory as a
sibling of the output file.

### Known Issues

- On Windows, the followings does not work:
Expand All @@ -60,12 +63,6 @@ See the documentations:

See the [API documentation](https://24ik.github.io/pon2/docs/pon2.html).

### Developing Web GUI

When using pon2 as a library, it is necessary to create `assets` directory as a
sibling of the output `.js` file, and copy `assets/puyo` and
`assets/noticegarbage` directories under it.

### Running Tests

```shell
Expand Down
2 changes: 1 addition & 1 deletion pon2.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.20.3"
version = "0.20.4"
author = "Keisuke Izumiya"
description = "Application for Puyo Puyo and Nazo Puyo"
license = "Apache-2.0"
Expand Down
3 changes: 1 addition & 2 deletions src/pon2pkg/app/marathon.nim
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ type

rng: Rand

const RawPairsTxt = staticRead currentSourcePath().parentDir.parentDir.parentDir.parentDir /
"assets" / "pairs" / "swap.txt"
const RawPairsTxt = staticRead Pon2RootDir / "assets" / "pairs" / "swap.txt"

using
self: Marathon
Expand Down
2 changes: 1 addition & 1 deletion src/pon2pkg/private/misc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import

const
Pon2RootDirCandidate = currentSourcePath().parentDir.parentDir.parentDir
Pon2RootDir =
Pon2RootDir* =
when Pon2RootDirCandidate.lastPathPart.startsWith "pon2":
Pon2RootDirCandidate
else:
Expand Down
Loading