String settings hooks (#82)

* added theme; env change

* began refactoring

* added process hook

* now singular string for each hook

* fixed splitting by comma to by space

* profile_create function updated

* prettier

* added jre validator

* restructured so that it doesnt look like a vec

* fixed merge issue

* snake case

* resolved merge issues + added process events

* clippy, fmt

* removed unnecssary func
This commit is contained in:
Wyatt Verchere
2023-04-17 12:40:27 -07:00
committed by GitHub
parent b120b5cfa8
commit 9f40640ed8
23 changed files with 473 additions and 210 deletions

View File

@@ -129,7 +129,7 @@ pub async fn emit_warning(message: &str) -> crate::Result<()> {
Ok(())
}
// emit_process(pid, event, message)
// emit_process(uuid, pid, event, message)
#[allow(unused_variables)]
pub async fn emit_process(
uuid: uuid::Uuid,

View File

@@ -93,7 +93,7 @@ pub enum LoadingBarType {
pack_name: String,
pack_id: Option<String>,
pack_version: Option<String>,
},
},
MinecraftDownload {
profile_uuid: Uuid,
profile_name: String,
@@ -121,11 +121,11 @@ pub struct ProcessPayload {
pub event: ProcessPayloadType,
pub message: String,
}
#[derive(Serialize, Clone)]
#[derive(Serialize, Clone, Debug)]
pub enum ProcessPayloadType {
Launched,
// Finishing, // TODO: process restructing incoming, currently this is never emitted
// Finished, // TODO: process restructing incoming, currently this is never emitted
Updated, // eg: if the MinecraftChild changes to its post-command process instead of the Minecraft process
Finished,
}
#[derive(Serialize, Clone)]