This commit is contained in:
azw 2023-10-29 09:01:51 +00:00
parent ed7c0c1956
commit b57440efdd
5 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,23 @@
pub struct UserApp {
}
impl f9::app::UserApp for UserApp {
fn get_pkg_name(&self) -> String {
return "".to_string();
}
fn init(&mut self) {
}
fn update(&mut self) {
}
fn uninit(&mut self) {
}
}

View File

@ -0,0 +1 @@
pub mod app;

View File

@ -1,7 +1,14 @@
use std::rc::Rc;
use std::cell::RefCell;
use f9::app::App;
pub mod app;
fn main() {
App::instance().borrow_mut().init();
App::instance().borrow_mut().init(
Rc::new(RefCell::new(
crate::app::app::UserApp{}))
);
App::instance().borrow_mut().run();
App::instance().borrow_mut().uninit();
}

View File

@ -0,0 +1,2 @@
pub mod app;
asjfklsd

2
third_party/r9 vendored

@ -1 +1 @@
Subproject commit 7d222040b1c4a6c00d15e0186e3e848e06d8aec8
Subproject commit 07d53fe46e2580b2d9413e00404f10bdd755efb5