Refactor Room and RoomObject classes to remove inheritance from SharedRom, enhancing code clarity and maintainability. Introduce ROM pointer management in both classes for improved functionality. Update LoadRoomFromRom to accommodate new constructor signature.

This commit is contained in:
scawful
2025-04-30 17:51:42 -04:00
parent 8f50d78ec7
commit 6d23128060
3 changed files with 16 additions and 16 deletions

View File

@@ -75,7 +75,7 @@ RoomSize CalculateRoomSize(Rom *rom, int room_id) {
}
Room LoadRoomFromRom(Rom *rom, int room_id) {
Room room(room_id);
Room room(room_id, rom);
int header_pointer = (rom->data()[kRoomHeaderPointer + 2] << 16) +
(rom->data()[kRoomHeaderPointer + 1] << 8) +