add screenshots folder if not exists
This commit is contained in:
1 parent
6f3a60df3a
commit
175ae1963c
3 files changed
+6
No files matched your search
@@ -461,6 +461,8 @@ namespace Vocaluxe.Lib.Draw
|
||||
{
|
||||
string file = "Screenshot_";
|
||||
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
int i = 0;
|
||||
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".bmp")))
|
||||
|
||||
@@ -300,6 +300,8 @@ namespace Vocaluxe.Lib.Draw
|
||||
{
|
||||
string file = "Screenshot_";
|
||||
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
int i = 0;
|
||||
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".png")))
|
||||
|
||||
@@ -556,6 +556,8 @@ namespace Vocaluxe.Lib.Draw
|
||||
{
|
||||
string file = "Screenshot_";
|
||||
string path = Path.Combine(Environment.CurrentDirectory, CSettings.sFolderScreenshots);
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
int i = 0;
|
||||
while (File.Exists(Path.Combine(path, file + i.ToString("00000") + ".bmp")))
|
||||
|
||||
Reference in new issue
Block a user