Skip to content

Commit

Permalink
fix config location
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreLouisIssa committed May 15, 2024
1 parent 81c5def commit 954ba36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed config incorrectly being placed directly in the game directory instead of in the plugin's config

## [1.0.0] - 2024-05-15

### Added
Expand Down
4 changes: 3 additions & 1 deletion src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ local function script_import(env,stub)
end
if stub == config_lua then
local default = envy.import(env,stub,globals)
local config = chalk.config.save_if_new_else_load_and_merge(config_toml,default)
rom.path.create_directory(env._PLUGIN.config_mod_folder_path)
local toml = rom.path.combine(env._PLUGIN.config_mod_folder_path,config_toml)
local config = chalk.config.save_if_new_else_load_and_merge(toml,default)
env.config = config
if env.mod then
env.mod.Config = config
Expand Down
2 changes: 1 addition & 1 deletion thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ containsNsfwContent = false
Hell2Modding-Hell2Modding = "1.0.22"
SGG_Modding-ENVY = "1.0.0"
SGG_Modding-Chalk = "1.0.0"
SGG_Modding-ReLoad = "1.0.0"
SGG_Modding-ReLoad = "1.0.1"
SGG_Modding-SJSON = "1.0.0"

[build]
Expand Down

0 comments on commit 954ba36

Please sign in to comment.