Skip to content

Commit e291108

Browse files
committed
formatted documents
1 parent 29c6e95 commit e291108

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

emulator/src/Peripheral/ROMWindow.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ namespace casioemu {
1717
if (description.empty())
1818
description = "ROM/Segment" + std::to_string(region_base >> 16);
1919

20-
MMURegion::WriteFunction write_function = strict_memory ? [](MMURegion *region, size_t address, uint8_t data) {
21-
logger::Info("ROM::[region write lambda]: attempt to write %02hhX to %06zX\n", data, address);
22-
region->emulator->HandleMemoryError();
23-
}
24-
: [](MMURegion *, size_t, uint8_t) {
25-
};
20+
MMURegion::WriteFunction write_function =
21+
strict_memory
22+
? [](MMURegion *region, size_t address, uint8_t data) {
23+
logger::Info("ROM::[region write lambda]: attempt to write %02hhX to %06zX\n", data, address);
24+
region->emulator->HandleMemoryError();
25+
}
26+
: [](MMURegion *, size_t, uint8_t) {
27+
};
2628

2729
if (offset >= 0)
2830
region.Setup(

0 commit comments

Comments
 (0)