mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
log when moving sqlite dll fails
This commit is contained in:
parent
58369eb962
commit
fd7c23e1a3
@ -129,12 +129,11 @@ namespace MCGalaxy {
|
||||
|
||||
static void MoveSqliteDll() {
|
||||
try {
|
||||
if (File.Exists("sqlite3_x32.dll") && IntPtr.Size == 4)
|
||||
File.Copy("sqlite3_x32.dll", "sqlite3.dll", true);
|
||||
|
||||
if (File.Exists("sqlite3_x64.dll") && IntPtr.Size == 8)
|
||||
File.Copy("sqlite3_x64.dll", "sqlite3.dll", true);
|
||||
} catch { }
|
||||
string dll = IntPtr.Size == 8 ? "sqlite3_x64.dll" : "sqlite3_x32.dll";
|
||||
if (File.Exists(dll)) File.Copy(dll, "sqlite3.dll", true);
|
||||
} catch (Exception ex) {
|
||||
Logger.LogError("Error moving SQLite dll", ex);
|
||||
}
|
||||
}
|
||||
|
||||
static void EnsureFilesExist() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user