forked from StrafesNET/map-tool
clarify function name
This commit is contained in:
parent
c2d0a4487c
commit
de9712b7a1
@ -21,7 +21,7 @@ enum Commands {
|
|||||||
VPKContents,
|
VPKContents,
|
||||||
BSPContents,
|
BSPContents,
|
||||||
DownloadMeshes(PathBufList),
|
DownloadMeshes(PathBufList),
|
||||||
Extract(PathBufList),
|
ExtractScripts(PathBufList),
|
||||||
WriteAttributes,
|
WriteAttributes,
|
||||||
Interactive,
|
Interactive,
|
||||||
Replace,
|
Replace,
|
||||||
@ -50,7 +50,7 @@ fn main() -> AResult<()> {
|
|||||||
Commands::BSPContents=>bsp_contents(cli.path.unwrap()),
|
Commands::BSPContents=>bsp_contents(cli.path.unwrap()),
|
||||||
Commands::ConvertTextures=>convert_textures(),
|
Commands::ConvertTextures=>convert_textures(),
|
||||||
Commands::DownloadMeshes(pathlist)=>download_meshes(pathlist.paths),
|
Commands::DownloadMeshes(pathlist)=>download_meshes(pathlist.paths),
|
||||||
Commands::Extract(pathlist)=>extract(pathlist.paths),
|
Commands::ExtractScripts(pathlist)=>extract_scripts(pathlist.paths),
|
||||||
Commands::WriteAttributes=>write_attributes(),
|
Commands::WriteAttributes=>write_attributes(),
|
||||||
Commands::Interactive=>interactive(),
|
Commands::Interactive=>interactive(),
|
||||||
Commands::Replace=>replace(),
|
Commands::Replace=>replace(),
|
||||||
@ -589,7 +589,7 @@ fn scan() -> AResult<()>{
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn extract(paths: Vec<PathBuf>) -> AResult<()>{
|
fn extract_scripts(paths: Vec<PathBuf>) -> AResult<()>{
|
||||||
let mut id = 0;
|
let mut id = 0;
|
||||||
//Construct allowed scripts
|
//Construct allowed scripts
|
||||||
let mut script_set = std::collections::HashSet::<String>::new();
|
let mut script_set = std::collections::HashSet::<String>::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user