feat: add backend for template launching

This commit is contained in:
DecDuck
2025-04-07 13:52:52 +10:00
parent 3e074abc0a
commit 6b9b9e3606
5 changed files with 47 additions and 1 deletions

View File

@ -11,6 +11,7 @@ pub enum ProcessError {
InvalidID,
InvalidVersion,
IOError(Error),
FormatError(String), // String errors supremacy
InvalidPlatform,
}
@ -25,6 +26,7 @@ impl Display for ProcessError {
ProcessError::InvalidVersion => "Invalid Game version",
ProcessError::IOError(error) => &error.to_string(),
ProcessError::InvalidPlatform => "This Game cannot be played on the current platform",
ProcessError::FormatError(e) => &format!("Failed to format template: {}", e),
};
write!(f, "{}", s)
}