| 3952 | } |
| 3953 | |
| 3954 | void CGame::LoadClientStartupConfig() |
| 3955 | { |
| 3956 | if (!g_ConfigManager.Load(g_App.FilePath("options.cfg"))) |
| 3957 | { |
| 3958 | // DEPRECATE: 1.0.6 |
| 3959 | if (!g_ConfigManager.Load(g_App.ExeFilePath("options.cfg"))) |
| 3960 | { |
| 3961 | g_ConfigManager.Load(g_App.UOFilesPath("options.cfg")); |
| 3962 | } |
| 3963 | } |
| 3964 | |
| 3965 | g_SoundManager.SetMusicVolume(g_ConfigManager.GetMusicVolume()); |
| 3966 | if (g_ConfigManager.GetMusic()) |
| 3967 | { |
| 3968 | if (g_Config.ClientVersion >= CV_7000) |
| 3969 | { |
| 3970 | PlayMusic(78); |
| 3971 | } |
| 3972 | else if (g_Config.ClientVersion > CV_308Z) |
| 3973 | { //from 4.x the music played is 0, the first one |
| 3974 | PlayMusic(0); |
| 3975 | } |
| 3976 | else |
| 3977 | { |
| 3978 | PlayMusic(8); |
| 3979 | } |
| 3980 | } |
| 3981 | } |
| 3982 | |
| 3983 | void CGame::PlayMusic(int index, bool warmode) |
| 3984 | { |
nothing calls this directly
no test coverage detected