forked from StrafesNET/map-tool
move main to top
This commit is contained in:
parent
540f5253d6
commit
7c1ecbf6da
34
src/main.rs
34
src/main.rs
@ -35,6 +35,23 @@ struct MapList {
|
|||||||
maps: Vec<u64>,
|
maps: Vec<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn main() -> AResult<()> {
|
||||||
|
let cli = Cli::parse();
|
||||||
|
match cli.command {
|
||||||
|
Commands::Download(map_list)=>download(map_list.maps),
|
||||||
|
Commands::DownloadTextures(pathlist)=>download_textures(pathlist.paths),
|
||||||
|
Commands::ConvertTextures=>convert_textures(),
|
||||||
|
Commands::DownloadMeshes(pathlist)=>download_meshes(pathlist.paths),
|
||||||
|
Commands::Extract(pathlist)=>extract(pathlist.paths),
|
||||||
|
Commands::WriteAttributes=>write_attributes(),
|
||||||
|
Commands::Interactive=>interactive(),
|
||||||
|
Commands::Replace=>replace(),
|
||||||
|
Commands::Scan=>scan(),
|
||||||
|
Commands::UnzipAll=>unzip_all(),
|
||||||
|
Commands::Upload=>upload(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn class_is_a(class: &str, superclass: &str) -> bool {
|
fn class_is_a(class: &str, superclass: &str) -> bool {
|
||||||
if class==superclass {
|
if class==superclass {
|
||||||
return true
|
return true
|
||||||
@ -1021,20 +1038,3 @@ fn write_attributes() -> AResult<()>{
|
|||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> AResult<()> {
|
|
||||||
let cli = Cli::parse();
|
|
||||||
match cli.command {
|
|
||||||
Commands::Download(map_list)=>download(map_list.maps),
|
|
||||||
Commands::DownloadTextures(pathlist)=>download_textures(pathlist.paths),
|
|
||||||
Commands::ConvertTextures=>convert_textures(),
|
|
||||||
Commands::DownloadMeshes(pathlist)=>download_meshes(pathlist.paths),
|
|
||||||
Commands::Extract(pathlist)=>extract(pathlist.paths),
|
|
||||||
Commands::WriteAttributes=>write_attributes(),
|
|
||||||
Commands::Interactive=>interactive(),
|
|
||||||
Commands::Replace=>replace(),
|
|
||||||
Commands::Scan=>scan(),
|
|
||||||
Commands::UnzipAll=>unzip_all(),
|
|
||||||
Commands::Upload=>upload(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user