Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes
Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34 installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the intro cutscene plays through and the main menu's frame loop runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddf913f304
commit
fd8b965350
110 files changed
+6500
-40129
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "info_display.h"
|
||||
#include "game.h"
|
||||
#include "persistent_game_data.h"
|
||||
#include "manager.h"
|
||||
#include "data.h"
|
||||
@@ -9,8 +10,6 @@
|
||||
constexpr std::string_view DOCUMENT_TAG = "#document";
|
||||
constexpr uint32_t TRINKET_GOLDEN_FLAG = 0x8000;
|
||||
constexpr uint32_t PILL_HORSE_FLAG = 0x800;
|
||||
constexpr int DIFFICULTY_GREED = 2;
|
||||
constexpr int DIFFICULTY_GREEDIER = 3;
|
||||
constexpr int RED_HEARTS_ALL = 24;
|
||||
|
||||
// The ids load_xml lists from the item config before reading info_display.xml.
|
||||
@@ -328,7 +327,7 @@ bool InfoDisplayEntry::is_line_visible(size_t lineIndex, Entity_Player& player,
|
||||
case INFO_DISPLAY_CARD:
|
||||
// The game reads the difficulty without checking for a game. Here no game means no greed mode.
|
||||
if (line.tag != INFO_DISPLAY_TAG_SPECIAL) return true;
|
||||
return g_game && (g_game->_difficulty == DIFFICULTY_GREED || g_game->_difficulty == DIFFICULTY_GREEDIER);
|
||||
return g_game && g_game->IsGreedMode();
|
||||
default: return true;
|
||||
}
|
||||
if (line.tag == INFO_DISPLAY_TAG_SPECIAL) return isSpecial;
|
||||
|
||||
Reference in new issue
Block a user