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 "persistent_game_data.h"
|
||||
#include "game.h"
|
||||
#include "info_display.h"
|
||||
#include "manager.h"
|
||||
#include <SDL3/SDL_iostream.h>
|
||||
@@ -352,12 +353,6 @@ template <typename List> static bool is_listed(List& list, int value)
|
||||
return std::ranges::find(list, value) != std::ranges::end(list);
|
||||
}
|
||||
|
||||
// Online play is offline, so the netplay peer list the game tests here (Manager +0x4b3d8) is always empty.
|
||||
static bool is_netplay_active()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// 00683410 Folds bytes into the checksum.
|
||||
void Checksum::Update(std::span<const uint8_t> data)
|
||||
{
|
||||
@@ -828,7 +823,7 @@ void PersistentGameData::write_file(std::string_view path)
|
||||
// 009292c0 Writes a copy of the save to save_backups/, named by today's date (YYYYMMDD) and the save's file name.
|
||||
void PersistentGameData::BackupSaveFile()
|
||||
{
|
||||
if (is_netplay_active()) return;
|
||||
if (g_manager->netplayManager.is_online()) return;
|
||||
|
||||
std::time_t now = std::time(nullptr);
|
||||
std::tm* date = std::localtime(&now);
|
||||
@@ -925,7 +920,7 @@ bool PersistentGameData::TryUnlock(int achievementID)
|
||||
return false;
|
||||
|
||||
achievements[achievementID] = true;
|
||||
if ((!is_netplay_active() || !Manager::AchievementUnlocksDisallowed()) && isSteamAchievementsEnabled)
|
||||
if ((!g_manager->netplayManager.is_online() || !Manager::AchievementUnlocksDisallowed()) && isSteamAchievementsEnabled)
|
||||
{
|
||||
UnlockSteamAchievement(achievementID);
|
||||
Manager::queue_achievement_popup(achievementID);
|
||||
@@ -942,7 +937,7 @@ bool PersistentGameData::Unlocked(int achievementID)
|
||||
{
|
||||
if (achievementID == ACHIEVEMENT_NEVER || achievementID >= ACHIEVEMENT_COUNT) return false;
|
||||
if (achievementID <= 0 || achievements[achievementID]) return true;
|
||||
return g_manager->state == MANAGER_STATE_GAME && g_game && (g_game->_dailyChallenge._id != 0 || g_game->_isDebug);
|
||||
return g_manager->state == MANAGER_STATE_GAME && g_game && (g_game->dailyChallenge._id != 0 || g_game->isDebug);
|
||||
}
|
||||
|
||||
// 00929b40 Adds to an event counter (which stops at 0) and checks every unlock counters and completion marks give.
|
||||
|
||||
Reference in new issue
Block a user