Missing direct.h contents

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

Nobody has claimed this yet.

  • #636 by @ExoSkye — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
backend

Research direction

Start with lib/xboxrt/libc_extensions/direct.h, which the issue says is empty, and compare the _chdir and _mkdir stubs in the reported workaround with the additional functionality expected from direct.h. The issue does not name tests or specify the full required behavior, so first determine the intended API and how these functions are tested in nxdk. Done means implementing the needed functionality and verifying it against those expectations.

Written by the indexing model from the issue text.

Description

We do have a direct.h already, but it's empty.

I currently use this hack:

echo "#pragma once // Generated" > $NXDK_DIR/lib/xboxrt/libc_extensions/direct.h
echo "int _chdir(const char *dirname) { return 0; }" >> $NXDK_DIR/lib/xboxrt/libc_extensions/direct.h
echo "int _mkdir(const char *dirname) { return 0; }" >> $NXDK_DIR/lib/xboxrt/libc_extensions/direct.h

I hope that someone will implement this properly.

There's more functionality in this, but this is enough for my current projects

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.