OSDN Git Service

^A O の出力を追記型にして, バージョンを明記するように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 30 May 2003 10:44:39 +0000 (10:44 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 30 May 2003 10:44:39 +0000 (10:44 +0000)
src/wizard2.c

index 2331f4a..46202ea 100644 (file)
@@ -1691,7 +1691,7 @@ static void do_cmd_dump_options(void)
        FILE_TYPE(FILE_TYPE_TEXT);
 
        /* Open the file */
-       fff = my_fopen(buf, "w");
+       fff = my_fopen(buf, "a");
 
        /* Oops */
        if (!fff)
@@ -1717,7 +1717,8 @@ static void do_cmd_dump_options(void)
                if (ot_ptr->o_var) exist[ot_ptr->o_set][ot_ptr->o_bit] = i + 1;
        }
 
-       fputs("[Option bits usage]\n\n", fff);
+       fprintf(fff, "[Option bits usage on Hengband %d.%d.%d]\n\n",
+               FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 
        fputs("Set - Bit (Page) Option Name\n", fff);
        fputs("------------------------------------------------\n", fff);