How to Use lighty-launch
Basic Usage
Step 1: Initialize AppState
use lighty_core::AppState;
const QUALIFIER: &str = "com";
const ORGANIZATION: &str = "MyLauncher";
const APPLICATION: &str = "";
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let _app = AppState::new(
QUALIFIER.to_string(),
ORGANIZATION.to_string(),
APPLICATION.to_string(),
)?;
let launcher_dir = AppState::get_project_dirs();
Ok(())
}Step 2: Create Instance
Step 3: Authenticate
Step 4: Launch
Launch with Custom JVM Options
Launch with Custom Game Options
Instance Management
Get Running Instance PID
Get All PIDs (Multiple Instances)
Close Instance
Delete Instance
Instance Size Calculation
With Events
Installation Only (No Launch)
Complete Launch Flow
Error Handling
Feature Flags
Exports
Related Documentation
Related Crates
Last updated