From 2761f23d31a4c2eb8ad4e5de5dc84d65b85f170f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 29 May 2024 00:21:59 -0500 Subject: [PATCH] [nostalgia/developer-handbook] Update serialization notes --- developer-handbook.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer-handbook.md b/developer-handbook.md index 1e72f909..1bb1097c 100644 --- a/developer-handbook.md +++ b/developer-handbook.md @@ -562,7 +562,7 @@ ox::Result loadPalette2(ox::BufferView const&buff) noexcept { ```cpp #include -ox::Result writeSpritePalette1(NostalgiaPalette *pal) noexcept { +ox::Result writeSpritePalette1(NostalgiaPalette const&pal) noexcept { ox::Buffer buffer(ox::units::MB); std::size_t sz = 0; oxReturnError(ox::writeMC(buffer.data(), buffer.size(), pal, &sz)); @@ -570,7 +570,7 @@ ox::Result writeSpritePalette1(NostalgiaPalette *pal) noexcept { return buffer; } -ox::Result writeSpritePalette2(NostalgiaPalette *pal) noexcept { +ox::Result writeSpritePalette2(NostalgiaPalette const&pal) noexcept { return ox::writeMC(pal); } ```