変愚蛮怒のメインリポジトリです
Revision | f4c36c35d58c07c45ed6ef004a40df912e05ed67 (tree) |
---|---|
Time | 2015-04-23 23:54:50 |
Author | Deskull <desull@user...> |
Commiter | Deskull |
ALLOW_TEMPLATE プリプロセッサに関するコメントを一部和訳。 / Translate some comments of #define ALLOW_TEMPLATE to Japanese.
@@ -24,6 +24,7 @@ | ||
24 | 24 | * name and text information in a single pass. Thus, the game will not |
25 | 25 | * be able to load any template file with more than 20K of names or 60K |
26 | 26 | * of text, even though technically, up to 64K should be legal. |
27 | + * | |
27 | 28 | * Note that if "ALLOW_TEMPLATES" is not defined, then a lot of the code |
28 | 29 | * in this file is compiled out, and the game will not run unless valid |
29 | 30 | * "binary template files" already exist in "lib/data". Thus, one can |
@@ -31,6 +32,14 @@ | ||
31 | 32 | * "*.raw" files in "lib/data", and then quit, and recompile without |
32 | 33 | * defining ALLOW_TEMPLATES, which will both save 20K and prevent people |
33 | 34 | * 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 | + * テンプレートファイルを変更することを妨げることができる。 | |
34 | 43 | * The code could actually be removed and placed into a "stand-alone" |
35 | 44 | * program, but that feels a little silly, especially considering some |
36 | 45 | * of the platforms that we currently support. |