Sandertv / gophertunnel

General purpose library for Minecraft Bedrock Edition software written in Go
MIT License
419 stars 95 forks source link

Fix cache dir on android #161

Closed HashimTheArab closed 1 year ago

HashimTheArab commented 1 year ago

This closes #151

HashimTheArab commented 1 year ago

soo update

when using UserCacheDir 11-30 16:35:42.405 10852 10914 I localhost.lunar: 2022/11/30 21:35:42 invalid full resource pack data for UUID 14241aca-df69-4af8-8f12-09eeb326f320: error creating temp zip archive: open /data/local/tmp/resource_pack_archive-1718213064.mcpack: permission denied

but when using UserConfigDir it works fine

for reference the 2 directories: 11-24 14:40:18.425 9627 10619 I localhost.lunar: cache dir: /data/user/0/localhost.lunar/files/cache 11-24 14:40:18.998 9627 9691 I localhost.lunar: config dir: /data/user/0/localhost.lunar/files/config