forked from StrafesNET/map-tool
misc edits
This commit is contained in:
parent
dc9fd2c442
commit
c2d0a4487c
@ -70,7 +70,7 @@ fn class_is_a(class: &str, superclass: &str) -> bool {
|
|||||||
return class_is_a(&class_super, superclass)
|
return class_is_a(&class_super, superclass)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
false
|
||||||
}
|
}
|
||||||
fn recursive_collect_superclass(objects: &mut std::vec::Vec<rbx_dom_weak::types::Ref>,dom: &rbx_dom_weak::WeakDom, instance: &rbx_dom_weak::Instance, superclass: &str){
|
fn recursive_collect_superclass(objects: &mut std::vec::Vec<rbx_dom_weak::types::Ref>,dom: &rbx_dom_weak::WeakDom, instance: &rbx_dom_weak::Instance, superclass: &str){
|
||||||
for &referent in instance.children() {
|
for &referent in instance.children() {
|
||||||
@ -172,8 +172,8 @@ fn load_dom<R:Read+Seek>(input:&mut R)->AResult<rbx_dom_weak::WeakDom>{
|
|||||||
match &first_8[0..4]{
|
match &first_8[0..4]{
|
||||||
b"<rob"=>{
|
b"<rob"=>{
|
||||||
match &first_8[4..8]{
|
match &first_8[4..8]{
|
||||||
b"lox!"=>return rbx_binary::from_reader(input).map_err(anyhow::Error::msg),
|
b"lox!"=>rbx_binary::from_reader(input).map_err(anyhow::Error::msg),
|
||||||
b"lox "=>return rbx_xml::from_reader(input,rbx_xml::DecodeOptions::default()).map_err(anyhow::Error::msg),
|
b"lox "=>rbx_xml::from_reader(input,rbx_xml::DecodeOptions::default()).map_err(anyhow::Error::msg),
|
||||||
other=>Err(anyhow::Error::msg(format!("Unknown Roblox file type {:?}",other))),
|
other=>Err(anyhow::Error::msg(format!("Unknown Roblox file type {:?}",other))),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user