Sets up the common storage drives.
(storage: &mut endbasic_std::storage::Storage)
| 196 | |
| 197 | /// Sets up the common storage drives. |
| 198 | fn setup_storage(storage: &mut endbasic_std::storage::Storage) { |
| 199 | storage.register_scheme("demos", Box::from(endbasic_repl::demos::DemoDriveFactory::default())); |
| 200 | storage.mount("demos", "demos://").expect("Demos drive shouldn't fail to mount"); |
| 201 | storage.register_scheme("local", Box::from(WebDriveFactory::default())); |
| 202 | storage.mount("local", "local://").expect("Web drive shouldn't fail to mount"); |
| 203 | storage.cd("local:").expect("Local drive was just registered"); |
| 204 | } |
| 205 | |
| 206 | /// Connects the EndBASIC interpreter to a web page. |
| 207 | #[wasm_bindgen] |
no test coverage detected