mirror of
https://github.com/a2x/cs2-dumper.git
synced 2026-04-18 02:09:58 +08:00
Fix issue causing missing schema entries
This commit is contained in:
@@ -17,7 +17,7 @@ impl CodeGen for InterfaceMap {
|
||||
fmt.block(
|
||||
&format!(
|
||||
"public static class {}",
|
||||
AsPascalCase(Self::sanitize_name(module_name))
|
||||
AsPascalCase(Self::slugify(module_name))
|
||||
),
|
||||
false,
|
||||
|fmt| {
|
||||
@@ -52,10 +52,7 @@ impl CodeGen for InterfaceMap {
|
||||
writeln!(fmt, "// Module: {}", module_name)?;
|
||||
|
||||
fmt.block(
|
||||
&format!(
|
||||
"namespace {}",
|
||||
AsSnakeCase(Self::sanitize_name(module_name))
|
||||
),
|
||||
&format!("namespace {}", AsSnakeCase(Self::slugify(module_name))),
|
||||
false,
|
||||
|fmt| {
|
||||
for iface in ifaces {
|
||||
@@ -108,7 +105,7 @@ impl CodeGen for InterfaceMap {
|
||||
writeln!(fmt, "// Module: {}", module_name)?;
|
||||
|
||||
fmt.block(
|
||||
&format!("pub mod {}", AsSnakeCase(Self::sanitize_name(module_name))),
|
||||
&format!("pub mod {}", AsSnakeCase(Self::slugify(module_name))),
|
||||
false,
|
||||
|fmt| {
|
||||
for iface in ifaces {
|
||||
|
||||
Reference in New Issue
Block a user