mirror of
https://github.com/4sval/FModel.git
synced 2026-04-05 00:26:17 -05:00
Rada error, Six Days In Fallujah fix
This commit is contained in:
parent
c8a97c5984
commit
d1159d85f8
|
|
@ -1 +1 @@
|
|||
Subproject commit 8f9967c2a474b1db84400bff5bcb012f28965281
|
||||
Subproject commit 6d7157a29b08d583aef9887a56d70f27a2ff36d5
|
||||
|
|
@ -43,6 +43,7 @@ public static class Constants
|
|||
// Common issues
|
||||
public const string MAPPING_ISSUE_LINK = "https://github.com/4sval/FModel/discussions/418";
|
||||
public const string AUDIO_ISSUE_LINK = "https://github.com/4sval/FModel/discussions/658";
|
||||
public const string RADA_ISSUE_LINK = "https://github.com/4sval/FModel/discussions/422";
|
||||
public const string VERSION_ISSUE_LINK = "https://github.com/4sval/FModel/discussions/425";
|
||||
|
||||
public static int PALETTE_LENGTH => COLOR_PALETTE.Length;
|
||||
|
|
|
|||
|
|
@ -722,6 +722,12 @@ public class AudioPlayerViewModel : ViewModel, ISource, IDisposable
|
|||
var decoderPath = Path.Combine(UserSettings.Default.OutputDirectory, ".data", $"{extension}dec.exe");
|
||||
if (!File.Exists(decoderPath))
|
||||
{
|
||||
Log.Error("Failed to convert {FilePath}, rada decoder is missing", SelectedAudioFile.FilePath);
|
||||
FLogger.Append(ELog.Error, () =>
|
||||
{
|
||||
FLogger.Text("Failed to convert audio because rada decoder is missing. See: ", Constants.WHITE);
|
||||
FLogger.Link("→ link ←", Constants.RADA_ISSUE_LINK, true);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1196,7 +1196,7 @@ public class CUE4ParseViewModel : ViewModel
|
|||
}
|
||||
case UAkMediaAsset when (isNone || saveAudio) && pointer.Object.Value is UAkMediaAsset akMediaAsset:
|
||||
{
|
||||
var audioName = akMediaAsset.MediaName;
|
||||
var audioName = akMediaAsset.MediaName ?? akMediaAsset.Name;
|
||||
if (akMediaAsset.CurrentMediaAssetData?.TryLoad<UAkMediaAssetData>(out var akMediaAssetData) is true)
|
||||
{
|
||||
var shouldDecompress = UserSettings.Default.CompressedAudioMode is ECompressedAudio.PlayDecompressed;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user