Skip to content

Add basic support without steam_api + NDEBUG small fix#2042

Open
q4a wants to merge 4 commits intomiki151:masterfrom
q4a:nosteam
Open

Add basic support without steam_api + NDEBUG small fix#2042
q4a wants to merge 4 commits intomiki151:masterfrom
q4a:nosteam

Conversation

@q4a
Copy link
Copy Markdown

@q4a q4a commented Dec 16, 2023

Add basic support without steam_api - fixes #1990
Also small fix for NDEBUG in last commit

q4a added 4 commits December 16, 2023 16:47
code from
https://github.com/miki151/keeperrl/blob/f0d2a78a6ad7c2632be6d8554e4d947f980648ae/fx_base.h#L30

  #define PARANOID_CHECKS
  //...
  #if defined(PARANOID_CHECKS) && !defined(NDEBUG)
  #define PASSERT CHECK
  #else
  #define PASSERT(...)
  #endif

When NDEBUG defined game will just ignoring all PASSERT(...), and
  PASSERT(size.x >= 0 && size.y >= 0) << size.x << " " << size.y;
will become just :
   << size.x << " " << size.y;
@UlyssesZh
Copy link
Copy Markdown

Similarly to steamless_input.cpp, you also need this:

#ifndef USE_STEAMWORKS
#include "steam_achievements.h"
#include "achievement_id.h"

SteamAchievements::SteamAchievements() {
}

void SteamAchievements::achieve(AchievementId id) {
}

#endif // USE_STEAMWORKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linux : cannot build without steam support

2 participants