Skip to content

Commit 914dae3

Browse files
Guantol-LematConnorForan
authored andcommitted
VirtualRoomSetManager: Add back logs for loading STB rooms.
1 parent 952b648 commit 914dae3

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

repentogon/VirtualRoomConfig/VirtualRoomSetManager.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,7 @@ static const OutAddStbRooms add_stb_rooms(_VirtualRoomSet& virtualSet, const std
515515
{
516516
OutAddStbRooms out;
517517

518-
LogUtility::LogContext logContext;
519-
//logContext.emplace_back(REPENTOGON::StringFormat("[LUA] Add Rooms from `.../content/rooms/%s` to set (%u, %i): ", filename.c_str(), stageId, mode));
520-
//std::string luaCaller = LogUtility::Lua::GetStackLevelInfo(L, 1);
521-
//if (!luaCaller.empty())
522-
//{
523-
// logContext.emplace_back(luaCaller + " -> ");
524-
//}
518+
ZHL::Log(LOG_INFO_HEADER "Adding Rooms from `/content/rooms/%s`\n", filename.c_str());
525519

526520
// Find the full expanded filepaths for matching files from ALL enabled mods.
527521
std::vector<std::string> modfilepaths = REPENTOGON::GetAllModContentPaths(filename);
@@ -541,15 +535,15 @@ static const OutAddStbRooms add_stb_rooms(_VirtualRoomSet& virtualSet, const std
541535
header[4] = '\0';
542536
if (strcmp(header, "STB1") != 0)
543537
{
544-
logContext.LogMessage(LogUtility::eLogType::ERROR, REPENTOGON::StringFormat("Invalid room file header '%s' in %s", header, filepath.c_str()).c_str());
538+
ZHL::Log(LOG_INFO_HEADER "Invalid room file header '%s' in %s", header, filepath.c_str());
545539
}
546540
else
547541
{
548542
// Read the number of rooms from the file.
549543
int numRooms = 0;
550544
file->Read(&numRooms, 4, 1);
551545

552-
//logContext.emplace_back(REPENTOGON::StringFormat("Reading %d Rooms from `%s`...", numRooms, filepath.c_str()));
546+
ZHL::Log(LOG_INFO_HEADER "Reading %d Rooms from '%s'\n", numRooms, filepath.c_str());
553547

554548
// The game's logic to load a RoomConfig_Room from a .stb file is tied to the RoomSet class.
555549
// Additionally, we can run into issues if we try to move/destroy a RoomConfig_Room/RoomSpawns allocated by the game.

0 commit comments

Comments
 (0)