Difference between revisions of "!include"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with 'Used to include configuration files in config.txt. When writing to a file, includes are not processed.')
 
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Used to include configuration files in [[config.txt]].
+
; !include [<filename>]
  
When writing to a file, includes are not processed.
+
: Use this option to include different files as part of the file it's used in. That makes it easier to reuse configurations.
 +
 
 +
:'''''Note'''. You can use a path that is relative to the file this is used in.''
 +
 
 +
Example (config.txt):
 +
    !include account.txt
 +
    !include skills/hunterselfskills.txt
 +
 
 +
:In the example above, if your config.txt is placed in the folder is "C:\Openkore\control", the files "C:\Openkore\control\account.txt" and "C:\Openkore\control\skills\hunterselfskills.txt" will be included as part of your configuration.
 +
 
 +
[[Category:control]]
 +
[[Category:tables]]

Latest revision as of 11:07, 14 September 2017

!include [<filename>]
Use this option to include different files as part of the file it's used in. That makes it easier to reuse configurations.
Note. You can use a path that is relative to the file this is used in.
Example (config.txt):
   !include account.txt
   !include skills/hunterselfskills.txt
In the example above, if your config.txt is placed in the folder is "C:\Openkore\control", the files "C:\Openkore\control\account.txt" and "C:\Openkore\control\skills\hunterselfskills.txt" will be included as part of your configuration.