WoW-Tools / CASCExplorer

CASCExplorer
378 stars 125 forks source link

[FIXED] FileNotFoundException on DBFilesClient\\Map.db2 #20

Closed mmalka closed 7 years ago

mmalka commented 7 years ago

I'm trying to read DBFilesClient\Map.db2 as I was before I update to latest change of CascLib because I need FileId loading as well.

However, it will return me a FileNotFoundException, any idea ?

File.Exists returns true on "DBFilesClient\Map.db2".

` _casc = CASCHandler.OpenOnlineStorage("wow", "us");

        if (_casc.FileExists("DBFilesClient\\Map.db2"))
            _casc.OpenFile("DBFilesClient\\Map.db2");`

Am I doing something plain wrong ?

mmalka commented 7 years ago

I see my mistake, I forgot to

        _casc.Root.SetFlags(LocaleFlags.enUS, ContentFlags.None);