Android port (Adreno): Vulkan backend, GameActivity app, touch HUD, lifecycle, minimap quest goals

- host/android: Vulkan replay backend (nvn_vk.c) with pipeline/descriptor caching, ADPF,
  AChoreographer present link; Linux compat layer; Makefile.android (headless dmhost + APK lib)
- android/app: GameActivity shell without Gradle (build_apk.sh), AAudio output, touch HUD port
  (touch_app.c + TouchOverlay.java, three layers: body / joystick / minimap goals),
  lifecycle save-on-background like iOS, art_from_ipa.py for touch / HUD / mapgoal art
- touch: shared touch controls moved from ios/Sources to dm/touch
- patch_nso.py Android ruleset, dmsh_vk.py shader pack, DM_TOUCH_PRODUCT defaults
- hle_audio: AAudio resume waits through STARTING and reopens once on failure
- .gitignore: local resources/ (original game data) never committed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-14 14:55:05 +09:00
co-authored by Claude Opus 5.5
parent 5bc5a01087
commit 4d91f80bae
106 changed files with 7009 additions and 181 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
typedef struct { const char *name; void *fn; } hle_ent;
#define HLE(mangled, ret, cname, ...) \
static ret cname(__VA_ARGS__); \
__attribute__((used, section("__DATA,swhle"))) static const hle_ent hle_ent_##cname = {mangled, (void *)cname}; \
__attribute__((used, DM_SECT("swhle"))) static const hle_ent hle_ent_##cname = {mangled, (void *)cname}; \
static ret cname(__VA_ARGS__)
typedef uint32_t Result; // nn::Result:w0,0 = 成功 | nn::Result: w0, 0 = success
@@ -39,7 +39,7 @@ void guest_clock_freeze_for(int reason, int on); // 按原因冻结(1 后台
typedef struct { const char *name; void *fn; const char *why; } hle_force_ent;
#define HLE_FORCE(mangled, why, ret, cname, ...) \
static ret cname(__VA_ARGS__); \
__attribute__((used, section("__DATA,swforce"))) static const hle_force_ent hle_force_##cname = {mangled, (void *)cname, why}; \
__attribute__((used, DM_SECT("swforce"))) static const hle_force_ent hle_force_##cname = {mangled, (void *)cname, why}; \
static ret cname(__VA_ARGS__)
// 运行模式(0 掌机 / 1 主机):hle_oe.c 持有,hid 的手柄样式跟它走;前端可在运行中切换