You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
src/libandroid: implement more stuff
This commit is contained in:
@@ -10,8 +10,11 @@
|
||||
#include <unistd.h>
|
||||
|
||||
struct AAssetManager {
|
||||
char dummy;
|
||||
};
|
||||
|
||||
struct AAssetManager dummy_asset_manager;
|
||||
|
||||
struct AAsset{
|
||||
int fd;
|
||||
off64_t read;
|
||||
@@ -114,7 +117,8 @@ off_t AAsset_getLength(struct AAsset *asset)
|
||||
}
|
||||
struct AAssetManager * AAssetManager_fromJava(JNIEnv *env, jobject assetManager)
|
||||
{
|
||||
return NULL;
|
||||
// some apps don't like if we return NULL here
|
||||
return &dummy_asset_manager;
|
||||
}
|
||||
|
||||
int AAsset_read(struct AAsset *asset, void *buf, size_t count) {
|
||||
|
||||
Reference in New Issue
Block a user