FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.12k stars 143 forks source link

Added support for subdir and sync of dll and ini names #289

Closed egornovivan closed 4 months ago

egornovivan commented 4 months ago

I think this is enough for compatibility with sfall https://github.com/FunkyFr3sh/cnc-ddraw/issues/287

FunkyFr3sh commented 4 months ago

It would not work like this right now (it breaks the config program and possible other 3rd party config tools), but if we remove the sync of dll and ini names and only keep the subdir change then it's fine though

FunkyFr3sh commented 4 months ago

I'll just merge it and modify it slightly to use the original filename and keep the subdir change

egornovivan commented 4 months ago

Name synchronization is only for those who understand what they are doing. The name of the dll and ini files remains the same ddraw

FunkyFr3sh commented 4 months ago

Name synchronization is only for those who understand what they are doing. The name of the dll and ini files remains the same ddraw

Yes, in theory you are right. But the problem is that some games need the file renamed (e.g. Outlive and Settlers3) because they don't link against ddraw.dll and use COM objects instead. But in this case i need the ddraw.dll renamed to dinput.dll but ddraw.ini needs to stay under the same name