mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-03 01:58:44 -04:00
rename all metaforce related things to Dusk
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Android Shell
|
||||
|
||||
This directory contains a minimal SDLActivity-based Android app wrapper for Metaforce.
|
||||
This directory contains a minimal SDLActivity-based Android app wrapper for Dusk.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -66,12 +66,12 @@ Output APK:
|
||||
You can pass command-line args through the activity intent:
|
||||
|
||||
```bash
|
||||
adb shell am start -n com.axiodl.metaforce/.MetaforceActivity \
|
||||
--es metaforce_args "'/sdcard/Download/Metroid Prime (USA).iso' --warp 2 17"
|
||||
adb shell am start -n com.twilitrealm.dusk/.DuskActivity \
|
||||
--es dusk_args "'/sdcard/Download/The Legend of Zelda: Twilight Princess (USA).iso'"
|
||||
```
|
||||
|
||||
Supported extras:
|
||||
|
||||
- `metaforce_args`: single shell-like argument string
|
||||
- `metaforce_argv`: string-array argv
|
||||
- `metaforce_disc`: compatibility shortcut (single ISO path)
|
||||
- `dusk_args`: single shell-like argument string
|
||||
- `dusk_argv`: string-array argv
|
||||
- `dusk_disc`: compatibility shortcut (single ISO path)
|
||||
|
||||
@@ -3,11 +3,11 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.axiodl.metaforce'
|
||||
namespace 'com.twilitrealm.dusk'
|
||||
compileSdk 35
|
||||
|
||||
defaultConfig {
|
||||
applicationId 'com.axiodl.metaforce'
|
||||
applicationId 'com.twilitrealm.dusk'
|
||||
minSdk 24
|
||||
targetSdk 35
|
||||
versionCode 1
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
android:enableOnBackInvokedCallback="false">
|
||||
|
||||
<activity
|
||||
android:name="com.axiodl.metaforce.MetaforceActivity"
|
||||
android:name="com.twilitrealm.dusk.DuskActivity"
|
||||
android:alwaysRetainTaskState="true"
|
||||
android:configChanges="layoutDirection|locale|grammaticalGender|fontScale|fontWeightAdjustment|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
|
||||
android:exported="true"
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package com.axiodl.metaforce;
|
||||
package com.twilitrealm.dusk;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.libsdl.app.SDLActivity;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MetaforceActivity extends SDLActivity {
|
||||
public class DuskActivity extends SDLActivity {
|
||||
private static String[] splitArgs(String raw) {
|
||||
List<String> out = new ArrayList<>();
|
||||
StringBuilder current = new StringBuilder();
|
||||
@@ -65,12 +65,12 @@ public class MetaforceActivity extends SDLActivity {
|
||||
protected String[] getArguments() {
|
||||
Intent intent = getIntent();
|
||||
if (intent != null) {
|
||||
String[] argv = intent.getStringArrayExtra("metaforce_argv");
|
||||
String[] argv = intent.getStringArrayExtra("dusk_argv");
|
||||
if (argv != null && argv.length > 0) {
|
||||
return argv;
|
||||
}
|
||||
|
||||
String rawArgs = intent.getStringExtra("metaforce_args");
|
||||
String rawArgs = intent.getStringExtra("dusk_args");
|
||||
if (rawArgs != null) {
|
||||
String trimmed = rawArgs.trim();
|
||||
if (!trimmed.isEmpty()) {
|
||||
@@ -78,7 +78,7 @@ public class MetaforceActivity extends SDLActivity {
|
||||
}
|
||||
}
|
||||
|
||||
String discPath = intent.getStringExtra("metaforce_disc");
|
||||
String discPath = intent.getStringExtra("dusk_disc");
|
||||
if (discPath != null && !discPath.isEmpty()) {
|
||||
return new String[] { discPath };
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Metaforce</string>
|
||||
<string name="app_name">Dusk</string>
|
||||
</resources>
|
||||
|
||||
@@ -14,5 +14,5 @@ dependencyResolutionManagement {
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "metaforce-android"
|
||||
rootProject.name = "dusk-android"
|
||||
include ':app'
|
||||
|
||||
Reference in New Issue
Block a user