Stability fixes, profile path and more.
Fixed a bunch of data races which should lead in stability improvements. Added possibility to specify game profile path within profile item. Added Urban Terror 4.3.2.
This commit is contained in:
@@ -49,11 +49,13 @@ func (d *Database) Close() {
|
||||
tx.Commit()
|
||||
|
||||
d.Db.Close()
|
||||
|
||||
runtime.UnlockOSThread()
|
||||
}
|
||||
|
||||
func (d *Database) Initialize(cfg *configuration.Config) {
|
||||
fmt.Println("Initializing database...")
|
||||
|
||||
runtime.LockOSThread()
|
||||
|
||||
// Connect to database.
|
||||
@@ -75,10 +77,6 @@ func (d *Database) Initialize(cfg *configuration.Config) {
|
||||
}
|
||||
}
|
||||
|
||||
func (d *Database) Lock() {
|
||||
runtime.LockOSThread()
|
||||
}
|
||||
|
||||
func (d *Database) Migrate() {
|
||||
// Getting current database version.
|
||||
dbver := 0
|
||||
@@ -94,7 +92,3 @@ func (d *Database) Migrate() {
|
||||
|
||||
migrate_full(d, dbver)
|
||||
}
|
||||
|
||||
func (d *Database) Unlock() {
|
||||
runtime.UnlockOSThread()
|
||||
}
|
||||
|
Reference in New Issue
Block a user