Skip to content

Commit

Permalink
Fix issue with crashing related to data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpopkov committed Sep 21, 2020
1 parent 7416b64 commit f3b6944
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][]

## [0.4.1][] - 2020-09-21

### Fixed

- Issue with crashing related to data loading

## [0.4.0][] - 2020-09-21

### Added
Expand Down Expand Up @@ -56,7 +62,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

First release.

[unreleased]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.4.0...HEAD
[unreleased]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.4.1...HEAD
[0.4.1]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/victorpopkov/dst-mod-dev-tools/compare/v0.1.0...v0.2.0
6 changes: 1 addition & 5 deletions modinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ version = "0.4.1"
description = [[Version: ]] .. version .. "\n\n" ..
[[An extendable mod, that simplifies the most common tasks for both developers and testers as an alternative to debugkeys.]] .. "\n\n" ..
[[v]] .. version .. [[:]] .. "\n" ..
[[- Added locale text scale in the front-end data sidebar]] .. "\n" ..
[[- Added new "Dev Tools" submenu]] .. "\n" ..
[[- Added new font option]] .. "\n" ..
[[- Added support for ignoring the locale text scale in tools]] .. "\n" ..
[[- Refactored data sidebars]]
[[- Fixed issue with crashing related to data loading]]
author = "Demonblink"
api_version = 10
forumthread = ""
Expand Down
5 changes: 5 additions & 0 deletions scripts/devtools/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ end)
function Config:Load()
if self.data then
self.data:GeneralGet("config", self, "values")
if self.values == nil
or (type(self.values) == "table" and Utils.Table.Count(self.values) == 0)
then
self.values = self.defaults
end
return true
end
return false
Expand Down

0 comments on commit f3b6944

Please sign in to comment.