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

Method LoadWithUop

xuocore/uodata.cpp:494–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494bool CFileManager::LoadWithUop()
495{
496 if (UopLoadFile(m_StringDictionary, "string_dictionary.uop"))
497 {
498 LoadStringDictionary();
499 }
500
501 //Try to use map uop files first, if we can, we will use them.
502 // pattern: "build/artlegacymul/%08d.tga"
503 if (!UopLoadFile(m_ArtLegacyMUL, "artLegacyMUL.uop"))
504 {
505 if (!m_ArtIdx.Load(UOFilePath("artidx.mul")))
506 {
507 return false;
508 }
509 if (!m_ArtMul.Load(UOFilePath("art.mul")))
510 {
511 return false;
512 }
513 }
514
515 // pattern: "build/gumpartlegacymul/%08d.tga"
516 if (!UopLoadFile(m_GumpartLegacyMUL, "gumpartLegacyMUL.uop")) // extra width,height
517 {
518 if (!m_GumpIdx.Load(UOFilePath("gumpidx.mul")))
519 {
520 return false;
521 }
522 if (!m_GumpMul.Load(UOFilePath("gumpart.mul")))
523 {
524 return false;
525 }
526
527 UseUOPGumps = false;
528 }
529 else
530 {
531 UseUOPGumps = true;
532 }
533
534 // pattern: "build/soundlegacymul/%08d.dat"
535 if (!UopLoadFile(m_SoundLegacyMUL, "soundLegacyMUL.uop"))
536 {
537 if (!m_SoundIdx.Load(UOFilePath("soundidx.mul")))
538 {
539 return false;
540 }
541 if (!m_SoundMul.Load(UOFilePath("sound.mul")))
542 {
543 return false;
544 }
545 }
546
547 // pattern: "build/multicollection/%06d.bin"
548 if (!UopLoadFile(m_MultiCollection, "MultiCollection.uop"))
549 {
550 if (!m_MultiIdx.Load(UOFilePath("multi.idx")))
551 {

Callers

nothing calls this directly

Calls 2

UOFilePathFunction · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected