Skip to content

Commit 8316ff9

Browse files
committed
Minor fixes
1 parent fe58b4b commit 8316ff9

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

GameOnPi/ConnectScreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Game On Pi Application
33
*
4-
* Copyright (C) 2018 Vid Rajtmajer <vid.rajtmajer@gmail.com>
4+
* Copyright (C) 2018 vid553 <vid.majster@gmail.com>
55
*
66
* Icon made by Freepik from www.flaticon.com
77
* Background Images from www.pexels.com

GameOnPi/MainScreen.cs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Game On Pi Application
33
*
4-
* Copyright (C) 2018 Vid Rajtmajer <vid.rajtmajer@gmail.com>
4+
* Copyright (C) 2018 vid553 <vid.majster@gmail.com>
55
*
66
* Icon made by Freepik from www.flaticon.com
77
* Background Images from www.pexels.com
@@ -23,12 +23,6 @@
2323

2424
namespace GameOnPi
2525
{
26-
// TODO Testiraj delovanje gumba Seznani ta PC / Prekini seznanitev
27-
// TODO Dodaj LICENSE + Icon made by Freepik from www.flaticon.com v readme
28-
// TODO Publish app + dodaj ikono
29-
// TODO Preveri če direktorij game_covers obstaja in ga ustvari če ne
30-
// TODO Probaj če dela brez interneta
31-
3226
public partial class MainScreen : Form
3327
{
3428
// Parametri za ssh povezavo
@@ -177,7 +171,7 @@ private void ConnectWithPi() // vzpostavimo povezavo z napravo
177171
}
178172
}
179173
}
180-
catch (Exception ex)
174+
catch (Exception)
181175
{
182176
MessageBox.Show("Napaka pri vzpostavitvi povezave z napravo.");
183177
infoLabel.Text = "Ni povezave :(";
@@ -195,6 +189,10 @@ private void UpdateGameList(SshClient client) // posodobimo seznam iger, ki so
195189
infoLabel.Visible = false;
196190
if (gamePics == true)
197191
{
192+
if (Directory.Exists("game_covers/") == false)
193+
{
194+
Directory.CreateDirectory("game_covers/");
195+
}
198196
List<String> loadedGamePics =
199197
Directory.GetFiles("game_covers/").Select(Path.GetFileNameWithoutExtension).ToList();
200198
int numOfPics = loadedGamePics.Count;
@@ -540,7 +538,7 @@ private void LoadSettingsFile() // naložimo nastavitve iz datoteke
540538
Width = formWidth;
541539
Height = formHeight;
542540
}
543-
catch (Exception e)
541+
catch (Exception)
544542
{
545543
MessageBox.Show("Napaka pri branju datoteke z nastavitvami. Uporaba privzetih nastavitev...");
546544
LoadDefaultParameters();

GameOnPi/SettingsScreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Game On Pi Application
33
*
4-
* Copyright (C) 2018 Vid Rajtmajer <vid.rajtmajer@gmail.com>
4+
* Copyright (C) 2018 vid553 <vid.majster@gmail.com>
55
*
66
* Icon made by Freepik from www.flaticon.com
77
* Background Images from www.pexels.com

0 commit comments

Comments
 (0)