From cae76dd98e301a4560bb46ecb59b5952dff04149 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 20 Mar 2025 15:56:35 -0400 Subject: pke: cleanup std stream usage --- src/font.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/font.cpp') diff --git a/src/font.cpp b/src/font.cpp index 0a4ccbd..64728ee 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -7,6 +7,7 @@ #include "static-plane.hpp" #include "vendor-stb-image-include.h" #include "game-settings.hpp" + #include // TODO threading @@ -312,7 +313,7 @@ void FontType_Tick(double delta) { } } -void FontType_Serialize(std::ofstream &stream, FontType *ft) { +void FontType_Serialize(std::ostream &stream, FontType *ft) { FontTypeSpacing sp{}; FontTypeMSDFSettings msdf{}; memset(&sp, 0, sizeof(sp)); @@ -355,7 +356,7 @@ void FontType_Serialize(std::ofstream &stream, FontType *ft) { AM_Release(ft->fontTextureAssetHandle); } -void FontType_Deserialize(std::ifstream &stream) { +void FontType_Deserialize(std::istream &stream) { uint64_t i; NULL_CHAR_ARR(readLine, 128); FontTypeSpacing sp{}; -- cgit v1.2.3