diff --git a/README.md b/README.md index 611566e..8cfd023 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A crate that helps you make GBA games This crate requires a fair amount of special setup. All of the steps are detailed for you [in the 0th chapter of the -book](https://rust-console.github.io/gba/ch00/index.html) that goes with this +book](https://rust-console.github.io/gba/00-introduction/03-development-setup.html) that goes with this crate. If you've done the global setup once before and just want to get a new project diff --git a/init.sh b/init.sh index 6fdd5a1..f5db58e 100644 --- a/init.sh +++ b/init.sh @@ -30,12 +30,15 @@ mv linker.ld $APP_NAME/linker.ld # substitute cargo main file with a new basic one rm -rf $APP_NAME/src/main.rs -wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello1.rs -mv hello1.rs $APP_NAME/src/main.rs +wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello_world.rs +mv hello_world.rs $APP_NAME/src/main.rs + +# precreate target directory for crt0.o file +mkdir $APP_NAME/target # setup make file echo -e "CRT_FILE=$(echo $CRT_LOCAL) -CRT_OUTPUT=crt0.o +CRT_OUTPUT=target/crt0.o PROJECT_NAME=$(echo $APP_NAME) TARGET=$(echo $TARGET) THUMB_TARGET=$(echo $TARGET).json