Refactor Live2D plugin and renderer for improved clarity and performance

- Updated EGL and OpenGL ES integration in gl.rs for better context management.
- Simplified error handling and logging in model.rs and plugin.rs.
- Enhanced texture handling and rendering logic in renderer.rs.
- Added a script to find Cargo configuration files for easier debugging.
- Removed unused imports and dead code to clean up the codebase.
This commit is contained in:
2026-07-07 16:47:28 +08:00
parent 86e36aa677
commit 8f2ff558eb
8 changed files with 215 additions and 334 deletions

16
.find_cargo.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
echo "=== find cargo config ==="
find /home/showen -name "config.toml" -path "*.cargo*" 2>/dev/null
find /home/showen -name "config" -path "*.cargo*" 2>/dev/null
find / -name "config.toml" -path "*cargo*" 2>/dev/null | head -5
echo "=== check .cargo dir ==="
ls -la /home/showen/.cargo/ 2>/dev/null
echo "=== rustup cargo home ==="
echo $CARGO_HOME
ls -la ~/.cargo/ 2>/dev/null
echo "=== project cargo ==="
ls -la /home/showen/Showen/ShowenV2/.cargo/ 2>/dev/null
find /home/showen/Showen -name ".cargo" -type d 2>/dev/null