• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionf4c36c35d58c07c45ed6ef004a40df912e05ed67 (tree)
Time2015-04-23 23:54:50
AuthorDeskull <desull@user...>
CommiterDeskull

Log Message

ALLOW_TEMPLATE プリプロセッサに関するコメントを一部和訳。 / Translate some comments of #define ALLOW_TEMPLATE to Japanese.

Change Summary

Incremental Difference

--- a/src/init1.c
+++ b/src/init1.c
@@ -24,6 +24,7 @@
2424 * name and text information in a single pass. Thus, the game will not
2525 * be able to load any template file with more than 20K of names or 60K
2626 * of text, even though technically, up to 64K should be legal.
27+ *
2728 * Note that if "ALLOW_TEMPLATES" is not defined, then a lot of the code
2829 * in this file is compiled out, and the game will not run unless valid
2930 * "binary template files" already exist in "lib/data". Thus, one can
@@ -31,6 +32,14 @@
3132 * "*.raw" files in "lib/data", and then quit, and recompile without
3233 * defining ALLOW_TEMPLATES, which will both save 20K and prevent people
3334 * from changing the ascii template files in potentially dangerous ways.
35+ * ノートとして記録:ALLOW_TEMPLATESが定義されていない場合、
36+ * このファイルのコードの多くはコンパイル出力され、本ゲームは
37+ * 正規の「バイナリテンプレートファイル」がlib/dataファイル内に
38+ * 存在しない限り起動しなくなる。一方ALLOW_TEMPLATESが定義されている
39+ * ならば1度ゲームが起動するごとに*.rawファイル群が作成され、終了時には
40+ * ALLOW_TEMPLATEの定義に関係なくリコンパイルされる。これにより20K(バイト?)
41+ * のデータが保存され、プレイヤーが潜在的に危険な方法でascii文字の
42+ * テンプレートファイルを変更することを妨げることができる。
3443 * The code could actually be removed and placed into a "stand-alone"
3544 * program, but that feels a little silly, especially considering some
3645 * of the platforms that we currently support.
Show on old repository browser