mirror of
https://github.com/4sval/FModel.git
synced 2026-09-24 01:05:51 -05:00
a bunch of stuff (#663)
Some checks are pending
FModel QA Builder / build (push) Waiting to run
Some checks are pending
FModel QA Builder / build (push) Waiting to run
Co-authored-by: Chompster86 <chompster86@gmail.com> Co-authored-by: Asval <asval.contactme@gmail.com>
This commit is contained in:
@@ -409,7 +409,17 @@ public class TabItem : ViewModel
|
||||
Application.Current.Dispatcher.Invoke(() => File.WriteAllText(directory, Document.Text));
|
||||
SaveCheck(directory, fileName, updateUi);
|
||||
}
|
||||
public void SaveDecompiled(bool updateUi)
|
||||
{
|
||||
var fileName = Path.ChangeExtension(Entry.Name, ".cpp");
|
||||
var directory = Path.Combine(UserSettings.Default.PropertiesDirectory,
|
||||
UserSettings.Default.KeepDirectoryStructure ? Entry.Directory : "", fileName).Replace('\\', '/');
|
||||
|
||||
Directory.CreateDirectory(directory.SubstringBeforeLast('/'));
|
||||
|
||||
Application.Current.Dispatcher.Invoke(() => File.WriteAllText(directory, Document.Text));
|
||||
SaveCheck(directory, fileName, updateUi);
|
||||
}
|
||||
private void SaveCheck(string path, string fileName, bool updateUi)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
|
||||
Reference in New Issue
Block a user