Skip to content

Commit

Permalink
update and add console support (#20)
Browse files Browse the repository at this point in the history
* update gtav natives

* update rdr2 natives

* update crossmap to 1.68

* add console support

* update entities

* update entities
  • Loading branch information
PliskinDev authored Jan 19, 2024
1 parent c6a44f3 commit d924f9c
Show file tree
Hide file tree
Showing 5 changed files with 8,777 additions and 5,669 deletions.
44 changes: 42 additions & 2 deletions GTA V Script Decompiler/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private async void openToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new()
{
Filter = "GTA V Script Files|*.ysc;*.ysc.full"
Filter = "GTA V Script Files|*.ysc;*.osc;*.dsc;*.psc;*.ssc;*.ysc.full;*.osc.full;*.dsc.full;*.psc.full;*.ssc.full"
};

if (ofd.ShowDialog() == DialogResult.OK)
Expand Down Expand Up @@ -200,11 +200,51 @@ private async Task BatchDecompile(string dirPath)
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.osc"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.dsc"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.psc"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.ssc"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.ysc.full"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.osc.full"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.dsc.full"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.psc.full"))
{
CompileList.Enqueue(file);
}

foreach (var file in Directory.GetFiles(dirPath, "*.ssc.full"))
{
CompileList.Enqueue(file);
}

Enabled = false;

var progressBar = new ProgressBar("Export Directory", 1, CompileList.Count + 1);
Expand Down Expand Up @@ -266,7 +306,7 @@ private async void fileToolStripMenuItem1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new()
{
Filter = "GTA V Script Files|*.ysc;*.ysc.full"
Filter = "GTA V Script Files|*.ysc;*.osc;*.dsc;*.psc;*.ssc;*.ysc.full;*.osc.full;*.dsc.full;*.psc.full;*.ssc.full"
};

if (ofd.ShowDialog() == DialogResult.OK)
Expand Down
Loading

0 comments on commit d924f9c

Please sign in to comment.