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:
@@ -31,6 +31,9 @@ func (c *Config) initializePathsMac() {
|
||||
fmt.Println("Will use data path: " + data_path)
|
||||
c.TEMP["DATA"] = data_path
|
||||
|
||||
profile_path := path.Join(home_path, "Library", "Application Support", "Quake3", "q3ut4")
|
||||
c.TEMP["DEFAULT_PROFILE_PATH"] = profile_path
|
||||
|
||||
if _, err := os.Stat(data_path); os.IsNotExist(err) {
|
||||
os.MkdirAll(data_path, 0755)
|
||||
}
|
||||
@@ -46,6 +49,9 @@ func (c *Config) initializePathsNix() {
|
||||
fmt.Println("Will use data path: " + data_path)
|
||||
c.TEMP["DATA"] = data_path
|
||||
|
||||
profile_path := path.Join(home_path, ".q3a", "q3ut4")
|
||||
c.TEMP["DEFAULT_PROFILE_PATH"] = profile_path
|
||||
|
||||
if _, err := os.Stat(data_path); os.IsNotExist(err) {
|
||||
os.MkdirAll(data_path, 0755)
|
||||
}
|
||||
@@ -58,6 +64,10 @@ func (c *Config) initializePathsWin() {
|
||||
data_path := path.Join(homedrive, homepath_without_drive, "AppData", "Roaming", "URTrator")
|
||||
c.TEMP["DATA"] = data_path
|
||||
|
||||
// Verify it!
|
||||
profile_path := path.Join(homedrive, homepath_without_drive, "AppData", "UrbanTerror43", "q3ut4")
|
||||
c.TEMP["DEFAULT_PROFILE_PATH"] = profile_path
|
||||
|
||||
if _, err := os.Stat(data_path); os.IsNotExist(err) {
|
||||
os.MkdirAll(data_path, 0755)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user