Skip to content
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

Closed
wants to merge 9 commits into from
Closed

[WIP] remove mpq reading/stormlib dependency #105

wants to merge 9 commits into from

Conversation

dschu012
Copy link

@dschu012 dschu012 commented Dec 24, 2020

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.

@dschu012 dschu012 changed the title [WIP] Feature/remove stormlib [WIP] remove mpq reading/stormlib dependency Dec 24, 2020
@@ -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)
Copy link
Author

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";
Copy link
Author

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);
Copy link
Author

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);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: computeTypes(d->wtype2);

@dschu012 dschu012 closed this by deleting the head repository Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dependency on mpq reading from BH
1 participant