You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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,
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user