summaryrefslogblamecommitdiff
path: root/source/dw/app/ini.rs
blob: f4985380d80e6311e2b45dac8e67bbdfba46ca7a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 
                             




                                     
                                                                                                                                                               
 
                                                                


                              

                                            
                                             
 
                                    
                                                       
                           

         
// Copyright 2023 Gabriel Jensen.

use crate::dw::app::App;
use crate::dw::{datpth, VER};

extern crate glfw;

impl App {
	pub fn ini(&mut self) -> i8 {
		println!("\x1B[0m\x1B[1mDeltaWorld\x1B[0m {}.{}.{} \u{2014} Copyright 2023 \x1B[0m\x1B[1mGabriel Jensen\x1B[0m.\n", VER.maj, VER.min, VER.pat);

		eprintln!("data directory at \"{}\"", datpth());

		self.inisig();

		let mut gfx = self.inigfx();

		let cod = self.lop(&mut gfx);

		println!("goodbye");
		eprintln!("exiting with code {}", cod);
		return cod;
	}
}