-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30997eb
commit f43c087
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# creates a patch based on the difference between base.rom and working.rom | ||
|
||
# find flips patcher: | ||
flips="./flips/flips.exe" | ||
|
||
if [ "$op" = "Linux" ] | ||
then | ||
flips="./flips/flips-linux" | ||
fi | ||
|
||
if [ ! -f $flips ] | ||
then | ||
>&2 echo "flips not found; do you have the flips/ folder?" | ||
exit 2; | ||
fi | ||
|
||
echo "Generating patch.ips..." | ||
|
||
chmod u+w patch.ips | ||
|
||
rm patch.ips | ||
|
||
$flips --create --ips base.nes working.nes patch.ips | ||
err=$? | ||
|
||
chmod u+r patch.ips | ||
chmod a-wx patch.ips | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters