Skip to content

Commit

Permalink
Tweak opl example some more
Browse files Browse the repository at this point in the history
- remove printing of arguments
  • Loading branch information
Enet4 committed May 30, 2024
1 parent 987e84f commit 5efba1a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions examples/opl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ fn dos_main() {
let args = dos_x::argv();

let vgm_filename = if args.len() > 1 {
// if there are any arguments, print them
unsafe {
puts(b"Command line arguments:\0".as_ptr() as *const c_char);
for arg in args.iter().skip(1) {
let str = core::ffi::CStr::from_ptr(*arg);
let msg = format!(" - {}\0", str.to_string_lossy());
puts(msg.as_ptr() as *const c_char);
}
Some(CStr::from_ptr(args[1]))
}
} else {
Expand Down

0 comments on commit 5efba1a

Please sign in to comment.