Skip to content

Commit

Permalink
Removed link field in ctru-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
Meziu committed Feb 1, 2022
1 parent c39454f commit c59de27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
22 changes: 14 additions & 8 deletions ctru-rs/examples/hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ fn main() {
let apt = Apt::init().expect("Couldn't obtain APT controller");
let _console = Console::init(gfx.top_screen.borrow_mut());

let out = b"Hello fellow Rustaceans, I'm on the Nintendo 3DS!";
let width = 24;

let mut writer = BufWriter::new(Vec::new());
ferris_says::say(out, width, &mut writer).unwrap();
struct Timespec {
t: libc::timespec,
}

//let inst = std::time::Instant::now();
let mut t = Timespec { t: libc::timespec { tv_sec: 0, tv_nsec: 0 } };
let res = unsafe { libc::clock_gettime(libc::CLOCK_MONOTONIC, &mut t.t) };
println!("{{tv_sec: {}, tv_nsec: {} }} {} clock:{}", t.t.tv_sec, t.t.tv_nsec, res, libc::CLOCK_MONOTONIC);
ctru::thread::sleep(std::time::Duration::from_secs(2));
/*let ela = inst.elapsed();
println!(
"\x1b[0;0H{}",
String::from_utf8_lossy(&writer.into_inner().unwrap())
);
"\x1b[0;0HElapsed: {:#?}",
ela
);*/


This comment has been minimized.

Copy link
@ian-h-chamberlain

ian-h-chamberlain Feb 1, 2022

Member

@Meziu did you mean to check this in or was it just for testing?

This comment has been minimized.

Copy link
@Meziu

Meziu Feb 1, 2022

Author Member

Reverted, I am dumb and mechanically use git commit -a

This comment has been minimized.

Copy link
@ian-h-chamberlain

ian-h-chamberlain Feb 1, 2022

Member

Me too, it's such a force of habit, lol


// Main loop
while apt.main_loop() {
Expand Down
1 change: 0 additions & 1 deletion ctru-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "ctru-sys"
version = "0.4.0"
authors = ["Ronald Kinard <furyhunter600@gmail.com>"]
license = "https://en.wikipedia.org/wiki/Zlib_License"
links = "ctru"
edition = "2021"

[dependencies]
Expand Down

3 comments on commit c59de27

@AzureMarker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the links field removed?

@AzureMarker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I found the conversation... I'll look into that soon since offhand I don't think removing this is necessary.

@AzureMarker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #40

Please sign in to comment.