refactor: app event bus (#6985)

* refactor: app event bus

* fix: use messagepack + cleanup

* fix: use postcard

* fix: lint

* fix: import gate

* fix: prettierignore + lint

* fix: lint

* fix: rev
This commit is contained in:
Calum H.
2026-08-13 16:33:06 +00:00
committed by GitHub
parent 5f7493491f
commit 579109a478
93 changed files with 2669 additions and 834 deletions
+3 -1
View File
@@ -126,7 +126,9 @@ pub async fn parse_command(
if let Some(ext) = path.extension()
&& ext == "mrpack"
{
return Ok(CommandPayload::RunMRPack { path });
return Ok(CommandPayload::RunMRPack {
path: path.to_string_lossy().into_owned(),
});
}
emit_warning(&format!(
"Invalid command, unrecognized filetype: {}",
@@ -23,6 +23,10 @@ pub mod gdlauncher;
pub mod mmc;
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
#[cfg_attr(
feature = "export-ts",
derive(ts_rs::TS, postcard_bindgen::PostcardBindings)
)]
pub enum ImportLauncherType {
MultiMC,
PrismLauncher,