SteveTownsend / ImmersiveEquipmentMeshGen

Skyrim SE Synthesis Patcher for Immersive Equipment Display - mesh generation
GNU General Public License v3.0
13 stars 12 forks source link

Assumes SkyrimSE GameRelease #17

Closed Noggog closed 6 months ago

Noggog commented 1 year ago

https://github.com/SteveTownsend/ImmersiveEquipmentMeshGen/blob/main/ImmersiveEquipmentMeshGen/MeshHandler.cs#LL362C98-L362C109

This line assumes that it's SkyrimSE. This will cause issues with GOG users which have the ini in a different spot.

You should be able to do this:

var lookup = new IniPathLookup();
var path = lookup.Get(theGameRelease);

There should also be a static entry point, like so:

var path = Mutagen.Bethesda.Inis.Ini.GetTypicalPath(theGameRelease);

But this is currently hidden with a todo to do a design pass on the API to make sure it's proper. I'll look into that

SlavicPotato commented 1 year ago

It should be possible to grab GameRelease at runtime, right?

Noggog commented 1 year ago

Yeah, Synthesis' state provides game release, so just needs to be passed along