DEADSOFTWARE

system: add option --lang-dir
authorTerminalHash <lyashuk.voxx@gmail.com>
Sat, 27 May 2023 00:40:02 +0000 (03:40 +0300)
committerTerminalHash <lyashuk.voxx@gmail.com>
Sat, 27 May 2023 00:40:02 +0000 (03:40 +0300)
src/editor/Editor.lpr

index 1ca2d20f5378c543ada9d7d268f207fec2b88100..6bf0b86243c94bff222999756e0d4db8bde52f4a 100644 (file)
@@ -143,6 +143,14 @@ uses
           Inc(i);
           WadsDir := ParamStr(i);
         end;
+      end
+      else if p = '--lang-dir' then
+      begin
+        if i + 1 <= ParamCount then
+        begin
+          Inc(i);
+          LangDir := ParamStr(i);
+        end;
       end;
       Inc(i);
     end;