Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
fix everything (again)
Browse files Browse the repository at this point in the history
typos....
  • Loading branch information
AtlasTheProto committed Apr 25, 2020
1 parent efab938 commit bbba84f
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 50 deletions.
16 changes: 8 additions & 8 deletions bC7totif/MainForm.Designer.cs

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

44 changes: 15 additions & 29 deletions bC7totif/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ public static void doConvertAll()
{

busy = true;
// I hate this
//var moveDirs = new List<string> { "Models", "Particles", "Voxels", "Sprites", "Miscellaneous", "Lights", "Logo", "GUI", "HUD", "Gizmo", "Decals", "Debug", "BackgroundCube", "FactionLogo", "SunGlare"};
var count = 0;
foreach (string obj in Items)
{
Expand Down Expand Up @@ -328,8 +326,7 @@ private void btnConvert_Click(object sender, EventArgs e)

private void performTestToolStripMenuItem_Click(object sender, EventArgs e)
{
// defunct
StartProcess(@"C:\WINDOWs\SYSTEM32\PING.exe", "google.com");
// defunct debug shit
}

private void btnAdd_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -367,23 +364,18 @@ private void LoadPresetsToolStripMenuItem_Click(object sender, EventArgs e)
{
if (File.Exists("presets.ini"))
{

lbfolderList.Items.Clear();
var sparr = File.ReadAllLines("presets.ini");
for (int i = 0; i < sparr.Length; i++)
var presetItems = File.ReadAllLines("presets.ini");
for (int i = 0; i < presetItems.Length; i++)
{
if (sparr[i] == null)
continue;
var pth1 = sparr[i];
var pth2 = pth1.Replace(gamePath + "\\", "\\");
if (pth2 == pth1)
{
MessageBox.Show("Path must be inside game directory.", "Error (04)", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
lbfolderList.Items.Add(pth2);
if (presetItems[i] == null)
continue;
var pth1 = presetItems[i];
lbfolderList.Items.Add(pth1);
}
} else
}
else
{
MessageBox.Show("presets.ini not found in application directory.", "Error (05)", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Expand All @@ -395,19 +387,13 @@ private void btnInsertPresets_Click(object sender, EventArgs e)
{

lbfolderList.Items.Clear();
var sparr = File.ReadAllLines("presets.ini");
for (int i = 0; i < sparr.Length; i++)
var presetItems = File.ReadAllLines("presets.ini");
for (int i = 0; i < presetItems.Length; i++)
{
if (sparr[i] == null)
if (presetItems[i] == null)
continue;
var pth1 = sparr[i];
var pth2 = pth1.Replace(gamePath + "\\", "\\");
if (pth2 == pth1)
{
MessageBox.Show("Preset Error: Path must be inside game directory.\n"+pth1+"\n"+pth2, "Error (06)", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
lbfolderList.Items.Add(pth2);
var pth1 = presetItems[i];
lbfolderList.Items.Add(pth1);
}
}
else
Expand Down
Binary file modified bC7totif/bin/Debug/bulkTexConverter.exe
Binary file not shown.
12 changes: 6 additions & 6 deletions bC7totif/bin/Debug/presets.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Models\Cubes
Models\Cubes\armor
Models\Physical_item
Models\Environment\Bushes
Models\Environment\Grass
Models\Environment\Trees
\Models\Cubes
\Models\Cubes\armor
\Models\Physical_item
\Models\Environment\Bushes
\Models\Environment\Grass
\Models\Environment\Trees
Binary file modified bC7totif/bin/Release/bulkTexConverter.exe
Binary file not shown.
13 changes: 6 additions & 7 deletions bC7totif/bin/Release/presets.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Cubes
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Cubes\armor
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Physical_item
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Environment\Bushes
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Environment\Grass
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Models\Environment\Trees
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Voxels
\Models\Cubes
\Models\Cubes\armor
\Models\Physical_item
\Models\Environment\Bushes
\Models\Environment\Grass
\Models\Environment\Trees

0 comments on commit bbba84f

Please sign in to comment.