diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-16 22:42:58 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-16 22:42:58 +0300 |
commit | 7911a983af5892fb1535bc7ef795fec5ada21de2 (patch) | |
tree | 074d90ec077102778a0d60e90eb0f8d552b1c02f /ImageGooglerForm.cs | |
parent | 737370fc4c9c8aa51092dc82f3ac8f8bab7e5743 (diff) |
Now we can add any files, also some fixes
Diffstat (limited to 'ImageGooglerForm.cs')
-rw-r--r-- | ImageGooglerForm.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ImageGooglerForm.cs b/ImageGooglerForm.cs index 77f0dc48..db1cf819 100644 --- a/ImageGooglerForm.cs +++ b/ImageGooglerForm.cs @@ -18,7 +18,6 @@ namespace com.clusterrr.hakchi_gui {
public partial class ImageGooglerForm : Form
{
- public const string Suffix = " nes|famicom box art";
Thread searchThread;
Image result;
public Image Result
@@ -26,9 +25,15 @@ namespace com.clusterrr.hakchi_gui get { return result; }
}
- public ImageGooglerForm(string query)
+ public ImageGooglerForm(string query, NesMiniApplication app)
{
InitializeComponent();
+ if (app is NesGame)
+ query += " nes|famicom box art";
+ else if (app is FdsGame)
+ query += " fds box art";
+ else
+ query += " box art";
Text = "Google Images - " + query;
searchThread = new Thread(SearchThread);
searchThread.Start(query);
|