mc lang project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.rs 417B

1234567891011121314151617181920
  1. use mc_lang;
  2. fn main() {
  3. println!("Welcome to the Minecraft language file parsing utility.");
  4. let mut en_us_lang = String::new();
  5. loop {
  6. // get the canonical file
  7. en_us_lang = match mc_lang::read_file("en_US.lang") {
  8. Ok(contents) => {
  9. contents
  10. },
  11. Err(_) => continue,
  12. };
  13. break;
  14. }
  15. println!("{}", en_us_lang);
  16. }