XLaunchXBE cannot launch paths that start with "d:"

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
backend

Research direction

Start by reading the path expansion table in lib/hal/fileio.c, especially the d: mapping linked in the issue. Compare how XLaunchXBE handles drive-prefixed paths with explicit \Device\CdRom0 paths and paths without a drive prefix, using the linked repro project if available. Done means paths beginning with d: or D: launch successfully while the other reported forms continue to work.

Written by the indexing model from the issue text.

Description

Calling XLaunchXBE with a path that starts with d: or D: fails to launch the XBE.
Passing an explicit expanded path (i.e., prefixing with \Device\CdRom0) works, as does passing a path with no drive prefix at all).

I'm guessing this is due to the table at https://github.com/XboxDev/nxdk/blob/master/lib/hal/fileio.c#L15 that expands the d: prefix to \??\D:\.

Example project to repro the issue at abaire/nxdk_launch_test

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.