Android tweaks coming from the Tuxpaint-Android repo at github by Terrence Sheflin.
This commit is contained in:
parent
b612fcb881
commit
31594dfa62
3 changed files with 7 additions and 2 deletions
|
|
@ -15,15 +15,17 @@
|
|||
(See COPYING.txt)
|
||||
*/
|
||||
|
||||
#include <android/asset_manager.h>
|
||||
#include <android/asset_manager_jni.h>
|
||||
#include "android_assets.h"
|
||||
|
||||
AAssetManager * asset_manager = NULL;
|
||||
|
||||
AAssetDir * open_asset_dir(char * dirname)
|
||||
{
|
||||
return(AAssetManager_openDir(asset_manager, dirname));
|
||||
|
||||
return AAssetManager_openDir(asset_manager, dirname);
|
||||
}
|
||||
|
||||
void load_assets_dir(char * dirname, tp_ftw_str ** ffilenames, unsigned * num_file_names)
|
||||
{
|
||||
AAssetDir* assetDir = AAssetManager_openDir(asset_manager, dirname);
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ void load_from_assets(SDL_Surface * screen, SDL_Texture *texture, SDL_Renderer *
|
|||
unsigned dirlen, tp_ftw_str * files,
|
||||
unsigned count, const char *restrict const locale) );
|
||||
|
||||
void load_assets_dir(char * dirname, tp_ftw_str ** ffilenames, unsigned * num_file_names);
|
||||
|
||||
JNIEXPORT jboolean Java_org_tuxpaint_tuxpaintActivity_managertojni(JNIEnv * env, jclass clazz, jobject mgr);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
// https://developer.android.com/reference/android/support/v4/print/PrintHelper.html
|
||||
// https://developer.android.com/training/printing/photos.html
|
||||
|
||||
#include "../../SDL2/src/core/android/SDL_android.h"
|
||||
#include "android_print.h"
|
||||
#include "jni.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue