Skip to content

Commit

Permalink
wuhbtool: Allow a boot sound to be provided in btsnd format. Fixes de…
Browse files Browse the repository at this point in the history
  • Loading branch information
algrimes committed Jan 28, 2025
1 parent b22de1a commit d9fef39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wuhbtool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ int main(int argc, char **argv) {
value<std::string>{})
.add_option("drc-image",
description{"Splash Screen image shown on the DRC (854x480)"},
value<std::string>{})
.add_option("boot-sound",
description{"Boot sound played on TV and the DRC (btsnd format)"},
value<std::string>{});

parser.default_command()
Expand Down Expand Up @@ -154,6 +157,10 @@ int main(int argc, char **argv) {
addImageResource(metaFolder, "iconTex.tga.gz", 128, 128, 32, options, "icon");
addImageResource(metaFolder, "bootTvTex.tga.gz", 1280, 720, 24, options, "tv-image");
addImageResource(metaFolder, "bootDrcTex.tga.gz", 854, 480, 24, options, "drc-image");

std::string bootSoundPath = options.get<std::string>("boot-sound");
auto bootSoundFile = OSFileEntry::fromPath(bootSoundPath.c_str(), "bootSound.btsnd");
metaFolder->addChild(bootSoundFile);

addFolderIfNotEmpty(root, codeFolder);
addFolderIfNotEmpty(root, metaFolder);
Expand Down

0 comments on commit d9fef39

Please sign in to comment.