Skip to content

Commit

Permalink
Reword some text in ACB Editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueskythlikesclouds committed Sep 10, 2021
1 parent d8c911c commit f42da23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ This is the main library of the solution. Contains classes for IO and file form

## [ACB Editor](https://github.com/blueskythlikesclouds/SonicAudioTools/tree/master/Source/AcbEditor)
This tool allows you to edit the audio content of an ACB file.
A more advanced version like CSB Builder is planned to be made soon.

## [ACB Finder](https://github.com/blueskythlikesclouds/SonicAudioTools/tree/master/Source/AcbFinder)
This tool allows you to find AWB files and link them back to the ACB, required in extracting certain ACB files.
Expand Down
12 changes: 6 additions & 6 deletions Source/AcbEditor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void Main(string[] args)

if (!found)
{
throw new FileNotFoundException("Cannot find the external .AWB file for this .ACB file. Please ensure that the external .AWB file is stored in the directory where the .ACB file is.");
throw new FileNotFoundException("Unable to locate the corresponding streaming AWB file. Please ensure that it's in the same directory.");
}

if (extAfs2Archive.SubKey != 0)
Expand Down Expand Up @@ -166,7 +166,7 @@ static void Main(string[] args)
{
if (!found)
{
throw new Exception("Cannot find the external .AWB file for this .ACB file. Please ensure that the external .AWB file is stored in the directory where the .ACB file is.");
throw new Exception("Unable to locate the corresponding streaming AWB file. Please ensure that it's in the same directory.");
}

else if (extCpkArchive == null && cpkMode)
Expand Down Expand Up @@ -234,7 +234,7 @@ static void Main(string[] args)

if (!File.Exists(acbPath))
{
throw new FileNotFoundException("Cannot find the .ACB file for this directory. Please ensure that the .ACB file is stored in the directory where this directory is.");
throw new FileNotFoundException("Unable to locate the corresponding ACB file. Please ensure that it's in the same directory.");
}

CriTable acbFile = new CriTable();
Expand Down Expand Up @@ -282,7 +282,7 @@ static void Main(string[] args)

if (!File.Exists(inputName))
{
throw new FileNotFoundException($"Cannot find audio file with id {id} for replacement.\nPath attempt: {inputName}");
throw new FileNotFoundException($"Unable to locate {inputName}");
}

if (cpkMode)
Expand Down Expand Up @@ -340,14 +340,14 @@ static void Main(string[] args)

if (afs2Archive.Count > 0 || cpkArchive.Count > 0)
{
Console.WriteLine("Saving internal AWB...");
Console.WriteLine("Saving AWB file...");
acbFile.Rows[0]["AwbFile"] = cpkMode ? cpkArchive.Save() : afs2Archive.Save();
Console.WriteLine();
}

if (extAfs2Archive.Count > 0 || extCpkArchive.Count > 0)
{
Console.WriteLine("Saving external AWB...");
Console.WriteLine("Saving streaming AWB file...");
if (cpkMode)
{
extCpkArchive.Save(awbPath, Settings.Default.BufferSize);
Expand Down

0 comments on commit f42da23

Please sign in to comment.