-
Notifications
You must be signed in to change notification settings - Fork 8
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
4 changed files
with
29 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "GodMode9"] | ||
path = GodMode9 | ||
url = https://github.com/d0k3/GodMode9 | ||
url = https://github.com/ihaveamac/GodMode9 | ||
branch = real-lua-attempt |
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,24 @@ | ||
ui.echo("Testing!\n \nThis is a test.\n \nI will now try to verify finalize.romfs.") | ||
|
||
local success, hash_expected = pcall(fs.read_file, CURRDIR.."/finalize-romfs-hash.txt", 0, 64) | ||
if not success then | ||
ui.echo("Failed to read hash txt?\n"..hash_expected) | ||
sys.power_off() | ||
end | ||
|
||
print("Expected:", hash_expected) | ||
local success, hash_got = pcall(fs.hash_file, "0:/finalize.romfs", 0, 0) | ||
if not success then | ||
ui.echo("Failed to hash finalize.romfs\n"..hash_got) | ||
sys.power_off() | ||
end | ||
|
||
hash_got = util.bytes_to_hex(hash_got) | ||
|
||
print("Got: ", hash_got) | ||
|
||
if hash_got == hash_expected then | ||
ui.echo("Success!") | ||
else | ||
ui.echo("Failure...") | ||
end |