aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/n64/pad_rom.sh
blob: 463eeb4e28e39145771e5248499e84fc453bc8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

TARGET=$1
BASESIZE=2097152

CARTSIZE=`ls -l $1 | cut -d" " -f5`

REMAINDER=`echo $CARTSIZE % $BASESIZE   | bc`
REMAINDER=`echo $BASESIZE - $REMAINDER  | bc`
CARTSIZE=`echo $CARTSIZE + $REMAINDER  | bc`

ucon64 -q --n64 --v64 --chk --padn=$CARTSIZE  $1