-
Notifications
You must be signed in to change notification settings - Fork 49
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
Showing
9 changed files
with
36 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
local arg = {...} | ||
if #arg < 1 then | ||
print("usage: `make-patch-vc <rom-file>`") | ||
return | ||
end | ||
wiivc = true | ||
local make = loadfile("patch/lua/make.lua") | ||
for i = 1, #arg do | ||
print("making patch for `" .. arg[i] .. "`") | ||
local rom_info, rom, patched_rom = make(arg[i]) | ||
if rom_info ~= nil then | ||
print("saving patch") | ||
local rom_id = rom_info.game .. "-" .. rom_info.version .. "-" .. rom_info.region | ||
gru.ups_create(rom, patched_rom):save("patch/ups/gz-" .. rom_id .. ".ups") | ||
end | ||
end | ||
print("done") | ||
local make_patch = loadfile("patch/lua/make-patch.lua") | ||
return make_patch(...) |
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,3 @@ | ||
wiivc = true | ||
local make_rom = loadfile("patch/lua/make-rom.lua") | ||
return make_rom(...) |
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,3 @@ | ||
wiivc = true | ||
local patch = loadfile("lua/patch.lua") | ||
return patch(...) |
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,5 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
cd $(dirname $(readlink -f $0))/.. | ||
gru patch/lua/make-rom-vc.lua "$@" |
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,7 @@ | ||
@echo off | ||
setlocal | ||
pushd . | ||
%~d0 | ||
cd %~dp0/.. | ||
gru patch/lua/make-rom-vc.lua %* | ||
popd |
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,6 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
cd $(dirname $(readlink -f $0)) | ||
export PATH="$(readlink -f ./bin):$PATH" | ||
gru lua/patch-vc.lua "$@" |
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,8 @@ | ||
@echo off | ||
setlocal | ||
pushd . | ||
%~d0 | ||
cd %~dp0 | ||
set PATH=./bin;%PATH% | ||
gru lua/patch-vc.lua %* | ||
popd |