bundle cursors into cursor_rush.dat, started animator

This commit is contained in:
2025-05-31 00:38:29 -05:00
parent 67ee3dc8d1
commit 61157a2402
10 changed files with 292 additions and 317 deletions
+6 -5
View File
@@ -15,8 +15,9 @@ mod macos;
#[cfg(target_os = "linux")]
mod linux;
// Error type for platform operations
pub type Result<T> = std::result::Result<T, String>;
use anyhow::Result;
use image::RgbaImage;
// Platform-agnostic interface for cursor handling
#[cfg(target_os = "windows")]
@@ -41,9 +42,9 @@ pub fn initialize() -> Result<()> {
}
// Cross-platform implementation for setting cursor
pub fn set_system_cursor(path: &str) -> Result<()> {
println!("Setting system cursor: {}", path);
set_cursor(path)
pub fn set_system_cursor(image: &RgbaImage) -> Result<()> {
println!("Setting system cursor");
set_cursor(image)
}
// Cross-platform implementation for restoring default cursor