mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-12-12 14:46:17 +00:00
Write version in generated config.json
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -331,7 +331,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "decomp-toolkit"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"ar",
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "decomp-toolkit"
|
||||
description = "Yet another GameCube/Wii decompilation toolkit."
|
||||
authors = ["Luke Street <luke@street.dev>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
build = "build.rs"
|
||||
|
||||
@@ -276,6 +276,7 @@ pub struct OutputModule {
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
|
||||
pub struct OutputConfig {
|
||||
pub version: String,
|
||||
#[serde(flatten)]
|
||||
pub base: OutputModule,
|
||||
pub modules: Vec<OutputModule>,
|
||||
@@ -1036,7 +1037,11 @@ fn split(args: SplitArgs) -> Result<()> {
|
||||
});
|
||||
});
|
||||
let duration = start.elapsed();
|
||||
let out_config = OutputConfig { base: dol_result.unwrap()?, modules: modules_result.unwrap()? };
|
||||
let out_config = OutputConfig {
|
||||
version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
base: dol_result.unwrap()?,
|
||||
modules: modules_result.unwrap()?,
|
||||
};
|
||||
let mut object_count = out_config.base.units.len();
|
||||
for module in &out_config.modules {
|
||||
object_count += module.units.len();
|
||||
|
||||
Reference in New Issue
Block a user