Skip to content

Commit b672e4a

Browse files
authored
Merge pull request #1570 from chdoc/dehack
replace hardcoded `hack` with `getHackPath()`
2 parents 56c934e + 3311df4 commit b672e4a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

assign-profile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ local scripts = {
9292
FACETS = reqscript("assign-facets"),
9393
}
9494

95-
local default_filename = "/hack/scripts/dwarf_profiles.json"
95+
local default_filename = dfhack.getHackPath().."/scripts/dwarf_profiles.json"
9696

9797
-- ------------------------------------------------- APPLY PROFILE -------------------------------------------------- --
9898
--- Apply the given profile to a unit, erasing or resetting the unit characteristics as requested.

gui/launcher.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local SCROLLBACK_CHARS = 2^18
2626
local PERSISTED_SCROLLBACK_CHARS = 2^15
2727

2828
config = config or json.open('dfhack-config/launcher.json')
29-
base_freq = base_freq or json.open('hack/data/base_command_counts.json')
29+
base_freq = base_freq or json.open(dfhack.getHackPath()..'/data/base_command_counts.json')
3030
user_freq = user_freq or json.open('dfhack-config/command_counts.json')
3131

3232
-- track whether the user has enabled dev mode

internal/quickfort/aliases.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local quickfort_reader = reqscript('internal/quickfort/reader')
1111

1212
local log = quickfort_common.log
1313

14-
common_aliases_filename = 'hack/data/quickfort/aliases-common.txt'
14+
common_aliases_filename = dfhack.getHackPath()..'/data/quickfort/aliases-common.txt'
1515
user_aliases_filename = 'dfhack-config/quickfort/aliases.txt'
1616

1717
-- special keycode shortcuts inherited from python quickfort.

internal/quickfort/set.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ end
77

88
local settings = {
99
blueprints_user_dir={default_value='dfhack-config/blueprints'},
10-
blueprints_library_dir={default_value='hack/data/blueprints'},
10+
blueprints_library_dir={default_value=dfhack.getHackPath()..'/data/blueprints'},
1111
force_marker_mode={default_value=false},
1212
stockpiles_max_barrels={default_value=-1},
1313
stockpiles_max_bins={default_value=-1},

quickstart-guide.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
local gui = require('gui')
44
local widgets = require('gui.widgets')
55

6-
local GUIDE_FILE = 'hack/docs/docs/Quickstart.txt'
6+
local GUIDE_FILE = dfhack.getHackPath()..'/docs/docs/Quickstart.txt'
77

88
local function add_section_widget(sections, section)
99
if #section == 0 then return end

0 commit comments

Comments
 (0)