summaryrefslogblamecommitdiff
path: root/source/dw/app/ini.rs
blob: 5f4c535667b3edafbca647486292b549e7e95224 (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);

		self.end(&mut gfx);

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