Comments (6)
Pelya wrote this code, so I'll stop by his thread to see if there is any discussion about this (we might be outdated). Might be worthwhile to study the code and see what is being accomplished there. I'll take a look.
from mupen64plus-ae.
Yes DataDownloader may need a re-look. I think at the moment we are just using it to unzip files. Wonder if Android has any new utilities for this?
from mupen64plus-ae.
If you want something to just unzip files, I made this a while ago when I was first learning file streams in java.
https://gist.github.com/cded7f100838ef4e3918
It extracts a zip file, given the path to the zip and the desired directory to extract them to. Maybe that can help somewhat ?
from mupen64plus-ae.
Taking a step back... What if we just put the uncompressed data in the assets folder? It will still get compressed in the APK, so it doesn't change APK size. The only difference is where the data gets stored on the user's filesystem. One benefit would be that we don't have to manually check versions and update the data if it ever changes... it simply gets overwritten when the user updates/installs the APK. We could get rid of the DataDownloader class and we wouldn't even need the splash screen (even though I love the graphic :). Would vastly simplify the logic in MainActivity.
But I'm guessing there's more to it than that?
from mupen64plus-ae.
Ok, should have known it's not this simple. Android keeps files in the assets directory compressed, and you can't access them using ordinary java.io.File methods. I'm guessing you already knew all that ;)
from mupen64plus-ae.
Yes, that is the main reason (plus the nice splash image). Although the downloading functionality isn't currently being used, I like having it there for potential future expansion. For example it could be used for fun things like downloading box art, pulling from a community plug-in repository, grabbing hires texture packs, etc.
from mupen64plus-ae.
Related Issues (20)
- [Question]: I made new GUI for another developer's emulator
- [Issue]: GlideN64: Color buffer copy from RDRAM
- [Issue]: it can't run a multiworld randomizer
- R button for mobile player To switch from ocarina a time to majora mask #365[Feature request]:
- Soporte o fork para linux
- [Question]: bye! please delete all my issues
- [Feature request]: dialog to enter covers download url template
- [Issue]: bugs various games
- [Feature request]: Please fix framepacing
- [Issue]: Netplay black screen on Pixel w/ auto rotate HOT 1
- [Feature request]: Netplay Sync Cheats
- [Feature request]: RetroAchievements support HOT 1
- [Issue]: HOT 8
- Add Overlay Support
- [Issue]: Crash when launching any games. HOT 19
- [Issue]: 64MB limit on roms
- [Double button and gyroscope]:
- Famista64 : Backgroud will become bluescreen. HOT 6
- RetroAchievements Support
- [Question]:How to transfer save to another cell phone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mupen64plus-ae.