Greavesy1899 / MafiaToolkit

Open source toolkit for Mafia games. (Mafia II, Mafia III, Mafia DE)
MIT License
123 stars 20 forks source link

Load Oodle directly from game directory #46

Closed RoadTrain closed 3 years ago

RoadTrain commented 3 years ago

First commit is a fix for build errors I encountered locally. Second one is the meat of this PR.

I've written a custom resolver so that we don't have to copy oo2core_8_win64.dll to toolkit folder anymore -- it's resolved directly from game directory. This is a new .NET approach, wasn't available in .NET Framework, AFAICT.

RoadTrain commented 3 years ago

@Greavesy1899 tell me what you think. If this approach is OK, I'll need to update some language strings and readme probably.

Greavesy1899 commented 3 years ago

@RoadTrain I do like this change. I've always disliked the "move dll to Toolkit folder" prerequisite, so I am happy with this change. :)

I'll wait for localization and readme changes before merging

RoadTrain commented 3 years ago

Done. Please let me know if I need to improve wording :)

Greavesy1899 commented 3 years ago

Looks perfect. Thanks for the changes!