ericoporto / agsworks

A game store plugin for AGS, allows integrating with Steam and others.
MIT License
0 stars 0 forks source link

Dynamic load Steam #1

Open ericoporto opened 1 month ago

ericoporto commented 1 month ago

The idea is to try to load Steam dll dynamically, it would work with something like this

std::string filename;
#if defined(WIN64)
    filename = "steam_api64.dll";
#elif defined(WINDOWS)
    filename = "steam_api.dll";
#elif defined(MAC)
    filename = "libsteam_api.dylib";
#else
    filename = "libsteam_api.so";
#endif

Probably could reuse something from AGS core/platform.h here to help figure it out.

It would need then to pickup the symbols.

Try workout something for this, need to figure how to make it work.

We probably want to try to load it from the agsworks dll absolute path and then retry with a relative path too.