-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] remove mpq reading/stormlib dependency #105
Conversation
@@ -381,6 +382,10 @@ VARPTR(D2COMMON, AutoMagicTxt, AutoMagicTxt*, 0x9FBC8, 0xA4CE4) | |||
VARPTR(D2COMMON, ArmorTxt, ItemsTxt*, 0x9FBA4, 0xA4CC0) | |||
VARPTR(D2COMMON, ArmorTxtRecords, DWORD, 0x9FBA8, 0xA4CC4) | |||
|
|||
VARPTR(D2COMMON, InventoryTxt, InventoryTxt*, 0x9FA5C, 0xA4CAC) | |||
|
|||
VARPTR(D2COMMON, ItemsTxtRecords, DWORD, 0x9FB94, 0x0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: 1.13d
BH/MPQInit.cpp
Outdated
FindAncestorTypes((*d)["type"], ancestorTypes, parentMap1, parentMap2); | ||
StatProperties* bits = new StatProperties(); | ||
//MOV R32,DWORD [R32+0xBCC] | ||
bits->name = "unknown"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: set name
BH/MPQInit.cpp
Outdated
ItemAttributes* attrs = new ItemAttributes(); | ||
//attrs->name = ; | ||
std::strncpy(attrs->code, d->szcode, 4); | ||
attrs->category = to_string(d->wtype); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: ItemTypesTxt* szcode.
computeTypes(type->wEquiv[0]); | ||
computeTypes(type->wEquiv[1]); | ||
}; | ||
computeTypes(d->wtype); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: computeTypes(d->wtype2);
Work in progress. Works for 1.13c, however breaks the StashExport feature, this still needs to be fixed. Made the PR incase others wanted to try it out.
Fixes #104.