Skip to content

Commit 2d4f7ba

Browse files
committed
Added a Q&A about file loading to the FAQ
1 parent d096a65 commit 2d4f7ba

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2.3.12
4+
5+
- Added a Q&A about file loading to the FAQ
6+
37
## 2.3.11
48

59
- Removed the google analytics links from the web pages

docs/faq-en.md

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ The `update` function is called every frame, but the `draw` function may be skip
5050

5151
</details>
5252

53+
<details>
54+
<summary>File cannot be loaded. It may fail when the environment changes.</summary>
55+
56+
Make sure that the current directory is set as intended when loading files.<br>
57+
When Pyxel's `init` function is called, the current directory is changed to the same location as the script file. After that, files can be specified using relative paths. However, loading may fail if you try to open a file before calling `init` or if the current directory is changed after calling `init`.
58+
59+
</details>
60+
5361
<details>
5462
<summary>What are the types and usage of Pyxel's MML commands?</summary>
5563

docs/faq-jp.md

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ Pyxel のサンプルコードを 01、05、03、04、02 の順に試すのが
5050

5151
</details>
5252

53+
<details>
54+
<summary>ファイルが読み込めません。環境が変わると失敗する時があります。</summary>
55+
56+
ファイルを読み込む際に、カレントディレクトリが意図したものになっているかを確認してください。<br>
57+
Pyxel の`init`関数が呼ばれると、カレントディレクトリはそのスクリプトファイルと同じ場所に変更され、それ以降は相対パスでファイルを指定できます。しかし、`init`を呼ぶ前にファイルを開こうとした場合や`init`の後にカレントディレクトリを変更した場合には読み込みに失敗する可能性があります。
58+
59+
</details>
60+
5361
<details>
5462
<summary>PyxelのMMLのコマンドの種類と使い方を教えてください</summary>
5563

0 commit comments

Comments
 (0)