Export less symbols in the shared library.

This commit is contained in:
Agustín 2020-11-09 17:55:41 -03:00
parent 8aa643db53
commit f3ef25e8bd
1 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,8 @@ using namespace std;
typedef std::pair<AppId_t, std::string> DLC;
#include "config.cpp"
// Objects in an anonymous namespace are not exported in the shared library.
namespace {
class StellarISteamApps: public ISteamApps
{
ISteamApps* RealSteamApps;
@ -120,6 +122,11 @@ public:
bool BIsTimedTrial( uint32* punSecondsAllowed, uint32* punSecondsPlayed ) { return RealSteamApps->BIsTimedTrial(punSecondsAllowed, punSecondsPlayed); }
};
StellarISteamApps *StellarSteamApps = NULL;
} // namespace {
// Exported functions:
S_API void *S_CALLTYPE SteamInternal_FindOrCreateUserInterface( HSteamUser hSteamUser, const char *pszVersion ) {
void *S_CALLTYPE (*real)(HSteamUser, const char *);
void* ret;
@ -140,8 +147,6 @@ S_API void *S_CALLTYPE SteamInternal_FindOrCreateUserInterface( HSteamUser hStea
return ret;
}
StellarISteamApps *StellarSteamApps = NULL;
S_API ISteamApps *S_CALLTYPE SteamApps() {
ISteamApps *S_CALLTYPE (*real)();
ISteamApps* RealSteamApps;