Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assign-profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ local scripts = {
FACETS = reqscript("assign-facets"),
}

local default_filename = "/hack/scripts/dwarf_profiles.json"
local default_filename = dfhack.getHackPath().."/scripts/dwarf_profiles.json"

-- ------------------------------------------------- APPLY PROFILE -------------------------------------------------- --
--- Apply the given profile to a unit, erasing or resetting the unit characteristics as requested.
Expand Down
2 changes: 1 addition & 1 deletion gui/launcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local SCROLLBACK_CHARS = 2^18
local PERSISTED_SCROLLBACK_CHARS = 2^15

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

-- track whether the user has enabled dev mode
Expand Down
2 changes: 1 addition & 1 deletion internal/quickfort/aliases.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local quickfort_reader = reqscript('internal/quickfort/reader')

local log = quickfort_common.log

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

-- special keycode shortcuts inherited from python quickfort.
Expand Down
2 changes: 1 addition & 1 deletion internal/quickfort/set.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ end

local settings = {
blueprints_user_dir={default_value='dfhack-config/blueprints'},
blueprints_library_dir={default_value='hack/data/blueprints'},
blueprints_library_dir={default_value=dfhack.getHackPath()..'/data/blueprints'},
force_marker_mode={default_value=false},
stockpiles_max_barrels={default_value=-1},
stockpiles_max_bins={default_value=-1},
Expand Down
2 changes: 1 addition & 1 deletion quickstart-guide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local gui = require('gui')
local widgets = require('gui.widgets')

local GUIDE_FILE = 'hack/docs/docs/Quickstart.txt'
local GUIDE_FILE = dfhack.getHackPath()..'/docs/docs/Quickstart.txt'

local function add_section_widget(sections, section)
if #section == 0 then return end
Expand Down
Loading