Skip to content

Commit

Permalink
version 1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
XyLe-GBP committed Oct 1, 2022
1 parent f818635 commit 7102cbd
Show file tree
Hide file tree
Showing 16 changed files with 1,365 additions and 809 deletions.
10 changes: 10 additions & 0 deletions Localization/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Localization/Strings.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ Please configure the settings from the 'Settings' item.</value>
<data name="UnExpectedError" xml:space="preserve">
<value>An unexpected error has occurred.
{0}</value>
</data>
<data name="UnknownFFmpegCaption" xml:space="preserve">
<value>FFmpeg exists, but the version is unknown.
Do you want to download the official version?</value>
</data>
<data name="UpdateCompletedCaption" xml:space="preserve">
<value>The update has been completed.</value>
Expand Down
4 changes: 4 additions & 0 deletions Localization/Strings.ja.resx
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ Real-ESRGAN Photo: 写真等をアップスケールする際に適したモデ
<data name="UnExpectedError" xml:space="preserve">
<value>予期せぬエラーが発生しました。
{0}</value>
</data>
<data name="UnknownFFmpegCaption" xml:space="preserve">
<value>FFmpegが存在しますが、バージョンが不明です。
正規バージョンをダウンロードしますか?</value>
</data>
<data name="UpdateCompletedCaption" xml:space="preserve">
<value>アップデートが完了しました。</value>
Expand Down
4 changes: 4 additions & 0 deletions Localization/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ Please configure the settings from the 'Settings' item.</value>
<data name="UnExpectedError" xml:space="preserve">
<value>An unexpected error has occurred.
{0}</value>
</data>
<data name="UnknownFFmpegCaption" xml:space="preserve">
<value>FFmpeg exists, but the version is unknown.
Do you want to download the official version?</value>
</data>
<data name="UpdateCompletedCaption" xml:space="preserve">
<value>The update has been completed.</value>
Expand Down
4 changes: 4 additions & 0 deletions Localization/Strings.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ Real-ESRGAN Photo:该模型适用于放大照片等。</value>
<data name="UnExpectedError" xml:space="preserve">
<value>发生了一个意外的错误。
{0}</value>
</data>
<data name="UnknownFFmpegCaption" xml:space="preserve">
<value>FFmpeg存在,但版本不明。
你想下载官方版本吗?</value>
</data>
<data name="UpdateCompletedCaption" xml:space="preserve">
<value>更新完成。</value>
Expand Down
2 changes: 1 addition & 1 deletion VERSIONINFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version:1.30.2220.615
version:1.31.2220.1001
43 changes: 43 additions & 0 deletions src/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,49 @@ public static void GetVideoControllerInformation(string[] buffers)
}
}
}

public static List<string> GetGraphicsCardNamesInformation()
{
var clist = new List<string>();
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
string graphicsCard = string.Empty;
foreach (ManagementObject obj in searcher.Get())
{
if (obj["CurrentBitsPerPixel"] != null && obj["CurrentHorizontalResolution"] != null)
{
graphicsCard = obj["Name"].ToString();
clist.Add(graphicsCard);
}
}

if (clist.Count != 0)
{
return clist;
}
else { return null; }
}

public static List<string> GetGraphicsCardsInformation()
{
var clist = new List<string>();
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
string graphicsCard = string.Empty;
foreach (ManagementObject obj in searcher.Get())
{
if (obj["CurrentBitsPerPixel"] != null && obj["CurrentHorizontalResolution"] != null)
{
long ram = long.Parse(obj["AdapterRAM"].ToString()) / 1048576;
graphicsCard = obj["Name"].ToString() + " - " + obj["DriverVersion"].ToString() + " [ " + ram.ToString() + "MiB RAM ]";
clist.Add(graphicsCard);
}
}

if (clist.Count != 0)
{
return clist;
}
else { return null; }
}
}

class Config
Expand Down
Loading

0 comments on commit 7102cbd

Please sign in to comment.