-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCheckOodle.cs
27 lines (26 loc) · 1.03 KB
/
CheckOodle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace DATManager
{
class OodleFunctions
{
public static bool CheckOodleExists()
{
if (!File.Exists(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), "oo2core_8_win64.dll")))
{
if (!Properties.Settings.Default.ComplainOodle)
{
MessageBox.Show("Could not locate oo2core_8_win64.dll... LEGO Skywalker Saga archives will not extract correctly!\n Please place oo2core_8_win64.dll in the same directory as this program and restart.", "Missing Oodle DLL!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Properties.Settings.Default.ComplainOodle = true; // We complain once, and then shut up.
Properties.Settings.Default.Save();
}
return false;
}
return true;
}
}
}