- fixed config file parsing
This commit is contained in:
Observer KRypt0n_ 2023-04-16 17:36:39 +02:00
parent dce52f0d0d
commit 1d56514b71
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
3 changed files with 10 additions and 1 deletions

View file

@ -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"

View file

@ -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

View file

@ -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