Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions examples/colored-tri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/colored-tri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![feature(start)]
#![no_mangle]

use core::mem::ManuallyDrop;

Expand All @@ -15,8 +15,8 @@ use ogc_rs::{

extern crate alloc;

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let vi = Video::init();
let mut config = Video::get_preferred_mode();

Expand Down
22 changes: 3 additions & 19 deletions examples/embedded-graphics-wii/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/embedded-graphics-wii/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![feature(start)]
#![no_main]

mod display;
use crate::display::Display;
Expand All @@ -15,8 +15,8 @@ use embedded_graphics::{

use ogc_rs::prelude::*;

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let mut video = Video::init();
Input::init(ControllerType::Gamecube);
Input::init(ControllerType::Wii);
Expand Down
6 changes: 3 additions & 3 deletions examples/obj-loading/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![no_std]
#![feature(start)]
#![no_main]

mod obj;
use core::f32::consts::PI;
Expand Down Expand Up @@ -28,8 +28,8 @@ const WHITE_BYTES: &[u8] = include_bytes!("../white.png");
#[derive(Clone, Copy)]
pub struct Align32<T>(pub T);

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let Ok(obj) = obj::from_bytes(include_bytes!("./assets/untitled.obj")) else {
panic!()
};
Expand Down
37 changes: 18 additions & 19 deletions examples/template/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions examples/template/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#![no_std]
#![feature(start)]
#![no_main]

extern crate alloc;
use core::mem::ManuallyDrop;

use ogc_rs::{mp3player::MP3Player, prelude::*};

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let mp3 = include_bytes!("../mp3.mp3");

let video = Video::init();
Expand Down
37 changes: 18 additions & 19 deletions examples/texture-tri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples/texture-tri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_std]
#![feature(start)]
#![no_main]

use core::{alloc::Layout, mem::ManuallyDrop};
use core::mem::ManuallyDrop;

use ogc_rs::{
ffi::{
Expand All @@ -22,8 +22,8 @@ extern crate alloc;
use alloc::vec;
const WHITE_BYTES: &[u8] = include_bytes!("../white.png");

#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
#[no_mangle]
extern "C" fn main(_argc: isize, _argv: *const *const u8) -> isize {
let vi = Video::init();
let mut config = Video::get_preferred_mode();

Expand Down
2 changes: 1 addition & 1 deletion powerpc-unknown-eabi.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"target-endian": "big",
"target-family": "unix",
"target-mcount": "_mcount",
"target-c-int-width": "32",
"target-c-int-width": 32,
"target-pointer-width": "32",
"vendor": "nintendo"
}
Loading
Loading