1.0.1
- fixed config file parsing
This commit is contained in:
parent
dce52f0d0d
commit
1d56514b71
3 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anime-launcher-sdk"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||
license = "GPL-3.0"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -60,11 +60,13 @@ impl From<&JsonValue> for Schema {
|
|||
None => default.game
|
||||
},
|
||||
|
||||
#[cfg(feature = "sandbox")]
|
||||
sandbox: match value.get("sandbox") {
|
||||
Some(value) => Sandbox::from(value),
|
||||
None => default.sandbox
|
||||
},
|
||||
|
||||
#[cfg(feature = "components")]
|
||||
components: match value.get("components") {
|
||||
Some(value) => Components::from(value),
|
||||
None => default.components
|
||||
|
|
|
@ -60,6 +60,13 @@ impl From<&JsonValue> for Schema {
|
|||
None => default.game
|
||||
},
|
||||
|
||||
#[cfg(feature = "sandbox")]
|
||||
sandbox: match value.get("sandbox") {
|
||||
Some(value) => Sandbox::from(value),
|
||||
None => default.sandbox
|
||||
},
|
||||
|
||||
#[cfg(feature = "components")]
|
||||
components: match value.get("components") {
|
||||
Some(value) => Components::from(value),
|
||||
None => default.components
|
||||
|
|
Loading…
Reference in a new issue