mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
try to load from "sfx" folder if "SFX" folder does not exist
This commit is contained in:
parent
7acadc016d
commit
078ac0ee7a
1 changed files with 10 additions and 1 deletions
|
@ -67,8 +67,17 @@ namespace GTAAudioSharp
|
|||
if (Directory.Exists(directory))
|
||||
{
|
||||
string config_directory = Path.Combine(directory, "CONFIG");
|
||||
string sfx_directory = Path.Combine(directory, "SFX");
|
||||
|
||||
string sfx_directory = null;
|
||||
string sfx_directory_1 = Path.Combine(directory, "SFX");
|
||||
string sfx_directory_2 = Path.Combine(directory, "sfx");
|
||||
if (Directory.Exists(sfx_directory_1))
|
||||
sfx_directory = sfx_directory_1;
|
||||
else if (Directory.Exists(sfx_directory_2))
|
||||
sfx_directory = sfx_directory_2;
|
||||
|
||||
string streams_directory = Path.Combine(directory, "streams");
|
||||
|
||||
if (Directory.Exists(config_directory) &&
|
||||
Directory.Exists(sfx_directory) &&
|
||||
Directory.Exists(streams_directory))
|
||||
|
|
Loading…
Add table
Reference in a new issue