Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XLaunchXBE cannot launch paths that start with "d:" #500

Open
abaire opened this issue Sep 15, 2021 · 1 comment
Open

XLaunchXBE cannot launch paths that start with "d:" #500

abaire opened this issue Sep 15, 2021 · 1 comment

Comments

@abaire
Copy link
Contributor

abaire commented Sep 15, 2021

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

@JayFoxRox
Copy link
Member

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:\.

Yes; these are old OpenXDK functions (which suck). They have a lot of edge cases and hardcoded behaviour.

Those old functions should be rewritten for libnxdk in https://github.com/XboxDev/nxdk/tree/master/lib/nxdk (with proper mapping and mounting / unmounting handled by the kernel, as intended by MS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants