This commit is contained in:
Bitl 2020-01-04 12:51:39 -07:00
parent ce624287ca
commit d64d05c01a
3 changed files with 30 additions and 3 deletions

View File

@ -73,6 +73,7 @@ public static class GlobalVars
public static readonly string tshirtdirTextures = tshirtdir + DirTextures;
public static readonly string shirtdirTextures = shirtdir + DirTextures;
public static readonly string pantsdirTextures = pantsdir + DirTextures;
public static readonly string extradirIcons = extradir + "\\icons";
public static readonly string hatGameDirFonts = hatGameDir + FontsGameDir;
public static readonly string hatGameDirTextures = hatGameDir + TexturesGameDir;

View File

@ -168,7 +168,7 @@ namespace NovetusLauncher
try
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\icons\\" + GlobalVars.PlayerName + ".png");
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)
@ -1278,7 +1278,7 @@ namespace NovetusLauncher
try
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\icons\\" + GlobalVars.PlayerName + ".png");
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)

View File

@ -340,7 +340,33 @@ namespace NovetusLauncher
ConsolePrint("WARNING 4 - ports.txt not found. Creating empty file.", 5);
File.Create(GlobalVars.ConfigDir + "\\ports.txt").Dispose();
}
label5.Text = GlobalVars.BasePath;
if (!Directory.Exists(GlobalVars.AssetCacheDirFonts))
{
Directory.CreateDirectory(GlobalVars.AssetCacheDirFonts);
}
if (!Directory.Exists(GlobalVars.AssetCacheDirSky))
{
Directory.CreateDirectory(GlobalVars.AssetCacheDirSky);
}
if (!Directory.Exists(GlobalVars.AssetCacheDirSounds))
{
Directory.CreateDirectory(GlobalVars.AssetCacheDirSounds);
}
if (!Directory.Exists(GlobalVars.AssetCacheDirTexturesGUI))
{
Directory.CreateDirectory(GlobalVars.AssetCacheDirTexturesGUI);
}
if (!Directory.Exists(GlobalVars.AssetCacheDirScripts))
{
Directory.CreateDirectory(GlobalVars.AssetCacheDirScripts);
}
label5.Text = GlobalVars.BasePath;
label8.Text = Application.ProductVersion;
GlobalVars.important = SecurityFuncs.CalculateMD5(Assembly.GetExecutingAssembly().Location);
label11.Text = version;