mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-06-23 07:02:53 -05:00
Compare commits
No commits in common. "d31917ae12b0e0e10be3405750cf5c75dc2308aa" and "1e8683b25b940b1db9b1b7a30f70c45be120414d" have entirely different histories.
d31917ae12
...
1e8683b25b
2 changed files with 1 additions and 10 deletions
4
utils/src/.gitignore
vendored
4
utils/src/.gitignore
vendored
|
@ -1,4 +0,0 @@
|
||||||
analyze/
|
|
||||||
from/
|
|
||||||
to/
|
|
||||||
replacement/
|
|
|
@ -179,8 +179,7 @@ fn main() {
|
||||||
Error::raw(
|
Error::raw(
|
||||||
ErrorKind::ValueValidation,
|
ErrorKind::ValueValidation,
|
||||||
format!("Could not open replacement file as an image: {}\n", final_replacement.into_os_string().to_str().unwrap())
|
format!("Could not open replacement file as an image: {}\n", final_replacement.into_os_string().to_str().unwrap())
|
||||||
).print().unwrap();
|
).exit()
|
||||||
continue;
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
let repl_img = repl_img.to_rgba8();
|
let repl_img = repl_img.to_rgba8();
|
||||||
|
@ -246,10 +245,6 @@ fn main() {
|
||||||
cz.set_bitmap(repl_img.into_raw());
|
cz.set_bitmap(repl_img.into_raw());
|
||||||
cz.remove_palette();
|
cz.remove_palette();
|
||||||
|
|
||||||
if let Some(depth) = depth {
|
|
||||||
cz.header_mut().set_depth(*depth as u16)
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(ver) = version {
|
if let Some(ver) = version {
|
||||||
match cz.header_mut().set_version(*ver) {
|
match cz.header_mut().set_version(*ver) {
|
||||||
Ok(_) => (),
|
Ok(_) => (),
|
||||||
|
|
Loading…
Reference in a new issue