diff options
| author | Ben Bridle <ben@derelict.engineering> | 2026-11-09 18:03:35 +1300 |
|---|---|---|
| committer | Ben Bridle <ben@derelict.engineering> | 2026-11-09 18:04:39 +1300 |
| commit | 5d32e6a3936af7594ab046c66a5240b350a2bea7 (patch) | |
| tree | 7cd391bbd9cdb2869db7bdda2307251d27d9c7d5 /src/formats/mod.rs | |
| parent | 255fd76c527026387b0f074d5a3f9808037ca449 (diff) | |
| download | torque-asm-5d32e6a3936af7594ab046c66a5240b350a2bea7.zip | |
This is the same as 'raw', but produces bytes in little-endian order.
Diffstat (limited to 'src/formats/mod.rs')
| -rw-r--r-- | src/formats/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/formats/mod.rs b/src/formats/mod.rs index e15bfbd..8292a96 100644 --- a/src/formats/mod.rs +++ b/src/formats/mod.rs @@ -20,6 +20,7 @@ pub enum Format { Inhx, Inhx32, Raw, + RawLE, Source, } @@ -31,8 +32,9 @@ impl Format { "inhx" => Self::Inhx, "inhx32" => Self::Inhx32, "raw" => Self::Raw, + "raw-le" => Self::RawLE, "source" => Self::Source, - _ => fatal!("Unknown format '{string}', expected 'debug', 'inhx', 'inhx32', 'raw', or 'source'"), + _ => fatal!("Unknown format '{string}', expected 'debug', 'inhx', 'inhx32', 'raw', 'raw-le', or 'source'"), } } } @@ -45,6 +47,7 @@ impl std::fmt::Display for Format { Self::Inhx => "inhx", Self::Inhx32 => "inhx32", Self::Raw => "raw", + Self::RawLE => "raw-le", Self::Source => "source", }; write!(f, "{string}") |
