Skip to content

make getConfigPath a public Core API#5823

Merged
ab9rf merged 19 commits into
DFHack:developfrom
ab9rf:config-path-api
Jul 11, 2026
Merged

make getConfigPath a public Core API#5823
ab9rf merged 19 commits into
DFHack:developfrom
ab9rf:config-path-api

Conversation

@ab9rf

@ab9rf ab9rf commented Jun 1, 2026

Copy link
Copy Markdown
Member

also export to Lua as dfhack.getConfigPath

mainly so that we can move dfhack-config without having to update hundreds of source locations

@ab9rf ab9rf marked this pull request as ready for review June 6, 2026 19:45
also reorder includes om `LuaTools.h` to match our coding standards

@chdoc chdoc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (obviously) needs a changelog entry as well as changes to the documentation of the LuaAPI. Other than that, all changes look reasonable to me, even though I do not fully understand the motivation for all of the changes.

Comment thread library/include/LuaTools.h
Comment thread library/Core.cpp Outdated
Comment thread library/LuaApi.cpp
Comment thread plugins/orders.cpp
ab9rf added 2 commits July 10, 2026 16:29
* change `loadScriptPaths` to a `Core` private method
* add comments to header file for `getHackPath` and `getConfigPath` regarding validity of the return values of these methods
* fix include ordering in `LuaTools.h`
* add/update documentation for Lua exports `getHackPath` and `getConfigPath`
* add changelog

@chdoc chdoc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ab9rf ab9rf merged commit 7935ac8 into DFHack:develop Jul 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants