mirror of
https://github.com/PrimeDecomp/retrotool.git
synced 2026-07-12 18:18:58 -07:00
Collision: Add check to prevent accidental overwrite
This commit is contained in:
@@ -174,6 +174,8 @@ pub fn run(args: Args) -> Result<()> {
|
||||
}
|
||||
|
||||
fn convert(args: ConvertArgs) -> Result<()> {
|
||||
ensure!(args.input != args.out);
|
||||
|
||||
// TODO: Migrate to real model format (glTF?)
|
||||
let data = map_file(&args.input)?;
|
||||
let (form_desc, mut col_data, remain) = FormDescriptor::slice(&data, Endian::Little)?;
|
||||
|
||||
Reference in New Issue
Block a user