AzureMarker
564d75e518
Add file-explorer example to test file system via std
...
Note: there's some issue in release mode causing a segfault.
Currently investigating.
3 years ago
Meziu
bc16fb6d06
Merge pull request #24 from ian-h-chamberlain/improve-ctru-sys-ide
...
Use a module for bindings instead of `include!`
3 years ago
Ian Chamberlain
6b5d420ed2
Use a module instead of include!
...
Modules are better understood by rust-analyzer compared to macros
expansion, and we can still use the same bindgen script and lint attrs.
3 years ago
AzureMarker
1c5c72477c
Import Screen in examples to improve consistency
3 years ago
AzureMarker
67b15b928a
Tie the lifetime of Gfx to Console
...
This prevents dropping the Gfx object before the console. We want to do
this because printing after dropping gfx doesn't do anything (gfx isn't
rendering the text anymore).
Note that even though Rust doesn't understand the relationship between
Console and println, even if you don't use the console variable Rust
will prevent Gfx dropping because Console's Drop code _might_ use the
Gfx object (it doesn't, but we get the error we want anyway).
3 years ago
Andrea Ciliberti
d021da0c6f
Fixed examples for latest Console changes
3 years ago
Andrea Ciliberti
cbdd9d26c3
Require Gfx instance for Console::init
3 years ago
Andrea Ciliberti
a8b00bbed3
Removed backtrace console
3 years ago
Meziu
6ffcc98e62
Merge pull request #17 from AzureMarker/fix/console-drop
...
Add back Console::drop
3 years ago
AzureMarker
c3ae3a1abc
Select an empty console when dropping the selected console
3 years ago
AzureMarker
9a45f575c8
Add back initialization of default console in Console::drop
...
If the default console isn't initialized then it will segfault.
3 years ago
AzureMarker
12ae54c605
Add some more explanation to Console::drop
3 years ago
AzureMarker
84ef934223
Add back slightly simpler Console::drop
...
This is needed for soundness. Otherwise libctru will have a dangling
pointer, and will write to it when printing.
3 years ago
AzureMarker
e4b2e701b6
Run rustfmt
3 years ago
AzureMarker
f2b1b75224
Apply Clippy suggestions
3 years ago
AzureMarker
ffb239853e
Update to Rust 2021
3 years ago
AzureMarker
a16234c4e1
Run cargo fix to make compatible with Rust 2021
3 years ago
AzureMarker
72dafc7fc2
Update crates to 2018
3 years ago
AzureMarker
5c19a8364e
Ignore IntelliJ's project folder
3 years ago
AzureMarker
f547addf21
Use ctru_sys crate name instead of libctru, and run cargo fix --edition
...
Including --edition-idioms.
3 years ago
Meziu
2fd19e68dd
Merge pull request #12 from AzureMarker/feature/gfx-wide-mode
3 years ago
AzureMarker
07fe052d9a
Add wide screen mode support to Gfx
3 years ago
Andrea Ciliberti
03c7a772c5
Dedicated BackTrace Console instead of default
3 years ago
Meziu
143164fda0
Merge pull request #10 from AzureMarker/master
...
Update examples so they build
3 years ago
Andrea Ciliberti
22404a9f14
Print panic backtrace and exit on command
3 years ago
AzureMarker
0b16ff38b8
Update examples so they build
...
I tested all of these and they work.
3 years ago
Andrea Ciliberti
d806412c4d
Cleaned repository
3 years ago
AzureMarker
b01f3df547
Use a Cargo workspace
3 years ago
AzureMarker
0cdc957a6b
Move examples to ctru-rs/examples and delete old Xargo related files
3 years ago
AzureMarker
3041fa8ef1
Delete ctr-std
...
We use the rustc fork now
3 years ago
AzureMarker
f776cc18c6
Minimize ctru-sys build script churn
3 years ago
AzureMarker
9d177faa90
Link pthread-3ds via Cargo instead of static lib
...
This fixes the panic issue (not calling `panic_count::increase`) as well
as the missing debug info. The static lib contained a second copy of the
rust std, which caused these issues.
A side effect of removing this std is that the linker fix and pthread
library modules need to be "reachable" from the main module for Rust to
link them correctly. If the init methods of the modules are not called
somewhere, then a linker error will be emitted saying some symbols are
not found. The linker fix module didn't need this before because the
std included in the pthread static lib required those symbols, so they
were included. Now that the std is linked in later, Rust thinks these
symbols are unused (hence the init method).
Also moved the linker fix to be a dependency on ctru-rs. ctru-sys should
just be about interfacing with libctru.
3 years ago
AzureMarker
55e701ad5c
Add "links" value to ctru-sys Cargo.toml
3 years ago
AzureMarker
70ed800481
Implement Drop for Console so printing doesn't crash after dropping
3 years ago
AzureMarker
ed69327242
Simplify dependency specification
3 years ago
AzureMarker
ba3679199f
Add Soc::host_address
3 years ago
AzureMarker
8dd2f6ebd3
Update dependency reference after linker-fix-3ds PR merged
3 years ago
AzureMarker
271125cabe
Use linker_fix_3ds via dependency instead of static lib
3 years ago
AzureMarker
42e68139cb
Fix Console and Swkbd to not move after initialization
3 years ago
AzureMarker
e6080d0b45
Fix warnings in ctru-rs
3 years ago
AzureMarker
82d0055b22
Update to latest libctru
...
Includes fixes from vivlim and Meziu, such as two static libraries that
fix missing symbols during linking.
3 years ago
Fenrir
6070ddb033
Actually fix every instance of `Qwerty` this time
6 years ago
Fenrir
48d9199714
QUERTY -> QWERTY
6 years ago
FenrirWolf
97c7652fdd
Merge pull request #74 from FenrirWolf/gfx
...
Update and document Gfx module
6 years ago
Fenrir
5d918280e4
Update and document Gfx module
6 years ago
Fenrir
4d7406a743
Write entire panic message to stderr at once
...
This change has also been pushed to ctr-std-horizon, so it will carry over on the next rebase
6 years ago
FenrirWolf
15cb3c1e91
Merge pull request #73 from FenrirWolf/update-2018-08-18
...
Update for nightly-2018-08-18
6 years ago
Fenrir
5d28bfcfd6
Update for nightly-2018-08-18
6 years ago
Valentin
f2a90174bb
Update for latest nightly 2018-06-09 ( #70 )
...
* Update for latest nightly 2018-06-09
* We now have a proper horizon os and sys modules in libstd
7 years ago
FenrirWolf
49041a4e56
Merge pull request #68 from linouxis9/master
...
Update for latest nightly 2018-05-06
7 years ago