(&self)
| 356 | } |
| 357 | |
| 358 | fn default_platform(&self) -> Option<Ref<Platform>> { |
| 359 | unsafe { |
| 360 | let raw = BNGetDefaultPlatform(self.as_ref().handle); |
| 361 | |
| 362 | if raw.is_null() { |
| 363 | return None; |
| 364 | } |
| 365 | |
| 366 | Some(Platform::ref_from_raw(raw)) |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | fn set_default_platform(&self, plat: &Platform) { |
| 371 | unsafe { |