IGR (Ingame reset) functionality of hacked kernels or homebrew dashboards does not work

Open
#373 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
embedded-iot

Research direction

Start by reading the open-source IGR implementation in nkpatcher and compare how it detects XDK/XBE hooks with nxdk apps. The issue suggests a virtual gamepad API and compatibility with popular patchers, but does not identify nxdk files or tests to start from. Done means documenting the limitation and potential user options, then assessing a practical compatibility approach; the issue has had no activity for years.

Written by the indexing model from the issue text.

Description

When pressing the IGR combination or hacked kernels or homebrew dashboards, while an nxdk app is running, nothing happens.

While this isn't a bug in nxdk (but a bug in the kernels or homebrew dashboards) we should still document this problem, and come up with potential (optional) solutions for users who would like to use such features in their homebrew.
With this feature broken, the user could also false assume that their nxdk app had crashed.

We shouldn't just implement our own "hotkey" system, because:

  • It wouldn't respect custom hotkey settings configured for IGR (custom button mappings / custom IGR hotkey actions).
  • It feels very non-standard compared to retail games (both: to have your own combination / to have broken IGR).
  • The user can easily do this in their own app if they like.

Instead, we should aim for compatibility with existing IGR patchers in hacked kernels or homebrew dashboards.

Due to IGR being a hook in XDK / XBE code, we'll have to write fake XDK-like code that IGR patchers mistake for the real XDK code.
A generic solution which works with all IGR patchers is therefore impossible.
However, we can try to fool the most popular IGR patchers and add more support in the future.

Due to the wide variety of IGR options in some patchers, we should probably expose a virtual gamepad API, that controls a gamepad that is observed by the IGR patch. This would allow to handle a wide variety of IGR patchers and a number of different input methods (as we don't tie it to an API like xpad).

nkpatcher contains an open-source implementation of IGR functionality, so this is a good starting point.
I'm not sure how other (illegal or closed-source) dashboards or bioses do it (probably similar, but it might require different emulation).

Dominant language
C
Stars
600
Forks
97
Avg merge
11h 48m
Merged PRs (30d)
2

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from XboxDev/nxdk

All issues in XboxDev/nxdk

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.