Skip to content

Commit

Permalink
Merge pull request #141 from 24ik/marathon
Browse files Browse the repository at this point in the history
[bug] marathon
  • Loading branch information
24ik authored Sep 30, 2024
2 parents d4f31be + 10b61ac commit f4374ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
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

0 comments on commit f4374ee

Please sign in to comment.