Remove the entire skin_server.rs module and authlib-injector approach (HTTP server,
JVM agent, jar download). Replace with a dead-simple resource pack strategy:
- inject_skin_resource_pack() in launch.rs:
* On every launch, if the player has a saved skin, writes it to
resourcepacks/onelauncher_skin/assets/minecraft/textures/entity/player/wide/steve.png
and .../slim/alex.png (both variants so it always matches)
* Writes a pack.mcmeta with supported_formats 1-9999 covering all MC versions
* Patches options.txt to add/keep 'file/onelauncher_skin' in the resourcePacks list
* If no custom skin is saved, cleans up the pack dir and removes the options.txt entry
- patch_resource_packs_option() handles safe idempotent read-modify-write of options.txt
- Remove skin_server module from game/mod.rs
- Remove authlib_injector_path() from paths.rs
- Revert jvm_args to immutable (no longer needs push)
No extra dependencies, no background threads, no network requests.
- Add packages/oneclient_core/src/game/skin_server.rs:
* Local Tokio TCP skin server that serves a minimal Yggdrasil-compatible API
* Responds to GET /, GET /session/minecraft/profile/:uuid, GET /textures/:uuid.png
* Reads skin PNGs and metadata from launcher skins dir
* sync_offline_skins() copies PNG to CustomSkinLoader/skins/, config/offlineskins/, cachedImages/skins/
* prepare_authlib_injector() downloads authlib-injector-1.2.5.jar on first launch
- Modify packages/oneclient_core/src/game/launch.rs:
* Start skin server and attach -javaagent authlib-injector before spawning Minecraft
* Sync skins to cluster game dir mod folders on every launch
- Add authlib_injector_path() to packages/oneclient_common/src/paths.rs
- Remove dead fetch_skin_online() from skin.rs + all exports