rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
116 stars 17 forks source link

Add `os` module for querying OS and hardware state #136

Closed ian-h-chamberlain closed 9 months ago

ian-h-chamberlain commented 10 months ago

Most of these are dead simple and don't require any service initialization etc., so all we need is a simple wrapper. I didn't implement everything in <3ds/os.h> yet, but got most of the basic ones which seemed like likely use cases to me.

I based this PR off of #135 for now so that the tests could run, but I can retarget if that one has more stuff to address before merging.

Meziu commented 10 months ago

I find this already good enough to merge, however I'd wait for the test-runner PR to merge first, which I'll need a bit of time to review. 😅

ian-h-chamberlain commented 9 months ago

I find this already good enough to merge, however I'd wait for the test-runner PR to merge first, which I'll need a bit of time to review. 😅

@Meziu rebased to master since this PR didn't actually have any changes that required the ci/reusable-actions branch. It should be mergeable before that one goes in and there was no reason to block it that I could think of.