mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 00:20:57 +02:00
Add getAssetManager() method.
This method will be called from C++ side.
This commit is contained in:
@@ -35,6 +35,7 @@ import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.res.AssetManager;
|
||||
import android.media.AudioManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -544,6 +545,11 @@ public class GameActivity extends SDLActivity {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Keep
|
||||
public AssetManager getAssetManager() {
|
||||
return getResources().getAssets();
|
||||
}
|
||||
|
||||
public int getAudioSMP() {
|
||||
int smp = 256;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user