Skip to content

Commit

Permalink
Various fixes (sorry)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meowmaritus committed Jul 12, 2019
1 parent 7753683 commit dca4924
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
30 changes: 15 additions & 15 deletions DSFBX.Core/DSFBXImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1797,22 +1797,22 @@ public async Task<bool> BeginImport()

bool isSuccess = false;

//try
//{
try
{
isSuccess = Import();
//}
//catch (Exception ex)
//{
// PrintError($"Exception encountered while attempting to import:\n\n{ex}");

// //if (File.Exists(EntityBndPath + ".bak"))
// // File.Copy(EntityBndPath + ".bak", EntityBndPath, true);
// //else
// // PrintError("Unfortunately, the automatically-generated " +
// // "backup file was mysteriously gone and you are now most likely left " +
// // "with an empty entity BND file (please notify me, " +
// // "Meowmaritus, if you ever see this error message).");
//}
}
catch (Exception ex)
{
PrintError($"Exception encountered while attempting to import:\n\n{ex}");

//if (File.Exists(EntityBndPath + ".bak"))
// File.Copy(EntityBndPath + ".bak", EntityBndPath, true);
//else
// PrintError("Unfortunately, the automatically-generated " +
// "backup file was mysteriously gone and you are now most likely left " +
// "with an empty entity BND file (please notify me, " +
// "Meowmaritus, if you ever see this error message).");
}

OnImportEnding();

Expand Down
4 changes: 2 additions & 2 deletions DSFBX.ImporterGUI/DSFBXConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class DSFBXConfig : INotifyPropertyChanged
public string Manual_LastModelTypeDropdownOption = "Weapon";


private bool _forceReloadCHR = false;
private bool _forceReloadCHR = true;
public bool ForceReloadCHR
{
get => _forceReloadCHR;
Expand All @@ -25,7 +25,7 @@ public bool ForceReloadCHR
}
}

private bool _forceReloadPARTS = false;
private bool _forceReloadPARTS = true;
public bool ForceReloadPARTS
{
get => _forceReloadPARTS;
Expand Down
8 changes: 4 additions & 4 deletions DSFBX.ImporterGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
Margin="0,4,10,0"
FontSize="12"
FontWeight="SemiBold"
Foreground="White"
Foreground="Black"
Height="20" Click="ButtonDONATE_Click"
Background="Green"
Background="LightGreen"
/>

<Grid
Expand Down Expand Up @@ -498,8 +498,8 @@
Margin="93,0,0,4" Height="24"
VerticalContentAlignment="Center"
/>
<CheckBox x:Name="checkboxForceReloadCHR" IsChecked="{Binding Config.ForceReloadCHR}" Content="Force Reload Character Model After Importing" HorizontalAlignment="Right" Margin="0,0,10,8" VerticalAlignment="Bottom" Width="268" />
<CheckBox x:Name="checkboxForceReloadPARTS" IsChecked="{Binding Config.ForceReloadPARTS}" Content="Force Reload Player Equipment Models After Importing" HorizontalAlignment="Right" Margin="0,0,283,8" VerticalAlignment="Bottom" Width="318" />
<CheckBox x:Name="checkboxForceReloadCHR" IsChecked="{Binding Config.ForceReloadCHR}" IsEnabled="False" Content="Force Reload Character Model After Importing" HorizontalAlignment="Right" Margin="0,0,10,8" VerticalAlignment="Bottom" Width="268" />
<CheckBox x:Name="checkboxForceReloadPARTS" IsChecked="{Binding Config.ForceReloadPARTS}" IsEnabled="False" Content="Force Reload Player Equipment Models After Importing" HorizontalAlignment="Right" Margin="0,0,283,8" VerticalAlignment="Bottom" Width="318" />

</Grid>

Expand Down

0 comments on commit dca4924

Please sign in to comment.