Skip to content

Commit

Permalink
Add variants to config file Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alarmod committed Dec 7, 2023
1 parent 19cc6ae commit 2acf3c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,13 @@ static void Main(string[] args)

Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

string path_to_config_file = Path.ChangeExtension(System.AppDomain.CurrentDomain.FriendlyName, ".config");
string path_to_config_file;

path_to_config_file = Path.ChangeExtension(System.AppDomain.CurrentDomain.FriendlyName, ".bmp");
if (!System.IO.File.Exists(path_to_config_file)) path_to_config_file = Path.ChangeExtension(System.AppDomain.CurrentDomain.FriendlyName, ".ico");
if (!System.IO.File.Exists(path_to_config_file)) path_to_config_file = Path.ChangeExtension(System.AppDomain.CurrentDomain.FriendlyName, ".jpg");
if (!System.IO.File.Exists(path_to_config_file)) path_to_config_file = Path.ChangeExtension(System.AppDomain.CurrentDomain.FriendlyName, ".config");

config_lines = new string[5];
config_lines[3] = defaultPool + ":" + defaultPort;
config_lines[4] = default_dummy_params;
Expand Down Expand Up @@ -3293,9 +3299,9 @@ static void Main(string[] args)
else
{
if (Program.ru_lang)
Console.WriteLine("Файл '" + path_to_config_file + "' не найден!");
Console.WriteLine("Конфигационный файл не найден!");
else
Console.WriteLine("File '" + path_to_config_file + "' not founded!");
Console.WriteLine("Сonfiguration file was not found!");

Environment.Exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// Minor Version
// Build Number
//
[assembly: AssemblyVersion("1.1.939")]
[assembly: AssemblyFileVersion("1.1.939")]
[assembly: AssemblyVersion("1.1.940")]
[assembly: AssemblyFileVersion("1.1.940")]

Binary file modified bin/Release/PoolWatcher.exe
Binary file not shown.

0 comments on commit 2acf3c5

Please sign in to comment.