Andrea Ciliberti
cbdd9d26c3
Require Gfx instance for Console::init
3 years ago
Andrea Ciliberti
a8b00bbed3
Removed backtrace console
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
f547addf21
Use ctru_sys crate name instead of libctru, and run cargo fix --edition
...
Including --edition-idioms.
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
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
0cdc957a6b
Move examples to ctru-rs/examples and delete old Xargo related files
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
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
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
Fenrir
5d918280e4
Update and document Gfx module
6 years ago
Fenrir
5d28bfcfd6
Update for nightly-2018-08-18
6 years ago
Fenrir
741ef60a24
Add nul-terminatator to input that expects it
7 years ago
Fenrir
4f776778f1
add `set_hint_text` and `configure_button`
7 years ago
Fenrir
c490600f13
rename `applet` module to `applets`
7 years ago
Fenrir
74de604c4c
make `get_bytes` a safe function
...
libctru seems to ensure that output from the software keyboard is always well-formed
7 years ago
Fenrir
c18bb0d4cb
Initial software keyboard support
7 years ago
Fenrir
86e22e59b9
Move more implementation details to `imp` module
7 years ago
Fenrir
e672ad9dfb
Remove thread name functions
...
The only real use for thread names is so that they appear in panic messages. However, names set by this API won't appear in panic messages because we aren't `std::thread` and therefore don't have access to `sys_common::thread_info` where libstd stashes its thread names. So without that functionality, there's not much of a reason to have thread names at all.
7 years ago
Fenrir
e614084585
Add ctru::thread module
7 years ago
Fenrir
d6f52ed12a
Add apt::set_app_cpu_time_limit
7 years ago
Fenrir
b987c05d30
Fix memory leak in Soc::init
...
Ain't manual memory management grand?
7 years ago
Fenrir
efbe9809cc
Add documentation for Soc
7 years ago
Fenrir
43c251c10b
Add Soc::init_with_buffer_size
7 years ago
Fenrir
745dd51df0
Add Soc service
7 years ago
Fenrir
1dffa9cc16
Link libctru in ctru-sys
...
Allows debug builds to compile without throwing out random linker
errors. Plus it probably should have been this way the whole time
anyway.
7 years ago
Fenrir
224ed678db
Add wait_for_vblank function
...
Also change gfx methods to take &self instead of unnecessarily taking &mut self
7 years ago
Fenrir
fc0e124f43
Use bitflags 1.0 for button presses
7 years ago
Fenrir
16be4ef715
Fix unsoundness in Console's API
7 years ago
Fenrir
9f5d769afa
Update bindings for libctru v1.4.0
7 years ago
Fenrir
28c95a990c
Fix documentation
8 years ago
Fenrir
81db0773d0
Bump version
8 years ago
Fenrir
88f81df3ae
Refactor HID module
8 years ago