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

TARGET="scummvm"
BASESIZE=2097152

CARTSIZE=`ls -l $TARGET.v64 | 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  $TARGET.v64