OSDN Git Service

- Added PlayActorSound identifiers to zdefs.acs.
[zandronum/zandronum-acc.git] / acc.c
diff --git a/acc.c b/acc.c
index 01cea68..41f891e 100644 (file)
--- a/acc.c
+++ b/acc.c
@@ -22,7 +22,7 @@
 \r
 // MACROS ------------------------------------------------------------------\r
 \r
-#define VERSION_TEXT "1.46"\r
+#define VERSION_TEXT "1.53"\r
 #define COPYRIGHT_YEARS_TEXT "1995"\r
 \r
 // TYPES -------------------------------------------------------------------\r
@@ -196,15 +196,17 @@ static void ProcessArgs(void)
                                case 'D':\r
                                        acs_DebugMode = YES;\r
                                        acs_VerboseMode = YES;\r
-                                       if((i + 1) < ArgCount)\r
+                                       if(*text != 0)\r
                                        {\r
-                                               OpenDebugFile(ArgVector[++i]);\r
+                                               OpenDebugFile(text);\r
                                        }\r
                                        break;\r
                                        \r
                                case 'H':\r
                                        pc_NoShrink = TRUE;\r
                                        pc_HexenCase = TRUE;\r
+                                       pc_EnforceHexen = toupper(*text) != 'H';\r
+                                       pc_WarnNotHexen = toupper(*text) == 'H';\r
                                        break;\r
                                        \r
                                default:\r
@@ -242,6 +244,12 @@ static void ProcessArgs(void)
        {\r
                DisplayUsage();\r
        }\r
+\r
+       TK_AddIncludePath(".");\r
+#ifdef unix\r
+       TK_AddIncludePath("/usr/local/share/acc/");\r
+#endif\r
+       TK_AddProgramIncludePath(ArgVector[0]);\r
        \r
        if(count == 1)\r
        {\r
@@ -261,8 +269,9 @@ static void DisplayUsage(void)
 {\r
        puts("\nUsage: ACC [options] source[.acs] [object[.o]]\n");\r
        puts("-i [path]  Add include path to find include files");\r
-       puts("-d [file]  Output debugging information");\r
+       puts("-d[file]   Output debugging information");\r
        puts("-h         Create pcode compatible with Hexen and old ZDooms");\r
+       puts("-hh        Like -h, but use of new features is only a warning");\r
        exit(1);\r
 }\r
 \r