fix some nres

This commit is contained in:
william341 2017-05-02 17:52:10 -07:00
parent 596db1d5bc
commit 14c5ba260f
3 changed files with 6 additions and 8 deletions

View file

@ -230,7 +230,11 @@ namespace ShiftOS.Objects.ShiftFS
if (!FileExists(path))
{
dir.AddFile(new File(pathlist[pathlist.Length - 1], Encoding.UTF8.GetBytes(contents), false, Permissions.All));
try
{
dir.AddFile(new File(pathlist[pathlist.Length - 1], Encoding.UTF8.GetBytes(contents), false, Permissions.All));
}
catch { }
}
else
{

View file

@ -154,6 +154,7 @@ namespace ShiftOS.WinForms.Tools
try
{
if(ctrl.Tag != null)
tag = ctrl.Tag.ToString();
}
catch { }

View file

@ -44,14 +44,7 @@ namespace ShiftOS.WinForms
{
try
{
switch (SaveSystem.CurrentSave.Language)
{
case "deutsch":
return Properties.Resources.strings_de;
default:
return getDefault();
}
}
catch (NullReferenceException)
{