MCPcopy Create free account
hub / github.com/crossuo/crossuo / LoadClientStartupConfig

Method LoadClientStartupConfig

src/CrossUO.cpp:3954–3981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3952}
3953
3954void 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
3983void CGame::PlayMusic(int index, bool warmode)
3984{

Callers

nothing calls this directly

Calls 7

FilePathMethod · 0.80
ExeFilePathMethod · 0.80
UOFilesPathMethod · 0.80
GetMusicVolumeMethod · 0.80
GetMusicMethod · 0.80
LoadMethod · 0.45
SetMusicVolumeMethod · 0.45

Tested by

no test coverage detected