mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-24 11:11:31 +11:00
[fix] Initializer usage
This commit is contained in:
parent
9ad09cf9f2
commit
326db6990a
|
@ -14,7 +14,7 @@ crate.
|
||||||
## For a fast initialization start
|
## For a fast initialization start
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl https://raw.githubusercontent.com/rust-console/gba/master/init.sh -sSf | sh
|
curl https://raw.githubusercontent.com/rust-console/gba/master/init.sh -sSf | sh APP_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
# Contribution
|
# Contribution
|
||||||
|
|
6
init.sh
6
init.sh
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo -n "Type the name of the application / game, followed by [ENTER]: "
|
APP_NAME=$1
|
||||||
read APP_NAME
|
|
||||||
|
|
||||||
TARGET="thumbv4-none-agb"
|
TARGET="thumbv4-none-agb"
|
||||||
CRT_LOCAL="crt0.s"
|
CRT_LOCAL="crt0.s"
|
||||||
|
|
||||||
|
echo "Initializing rust-console gba at: $1"
|
||||||
|
|
||||||
# initialize cargo
|
# initialize cargo
|
||||||
cargo init $APP_NAME --bin
|
cargo init $APP_NAME --bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue