From 41731bc796305607c4901acbe65f2f2aae37a165 Mon Sep 17 00:00:00 2001 From: meowtech Date: Mon, 30 Mar 2026 20:54:52 +0000 Subject: [PATCH] alstream.cpp changes --- src/alstream.cpp | 8 ++++---- src/filesystem.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/alstream.cpp b/src/alstream.cpp index 80b50fb..01f42af 100644 --- a/src/alstream.cpp +++ b/src/alstream.cpp @@ -208,15 +208,15 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler ALDataSource *source; std::string errorMsg; - ALStreamOpenHandler(SDL_IOStream &srcOps, bool looped) - : srcOps(&srcOps), looped(looped), source(0) + ALStreamOpenHandler(SDL_IOStream* &srcOps, bool looped) + : srcOps(srcOps), looped(looped), source(0) {} - bool tryRead(SDL_IOStream &ops, const char *ext) + bool tryRead(SDL_IOStream* &ops, const char *ext) { /* Copy this because we need to keep it around, * as we will continue reading data from it later */ - *srcOps = ops; + srcOps = ops; /* Try to read ogg file signature */ char sig[5] = { 0 }; diff --git a/src/filesystem.h b/src/filesystem.h index 4896d90..5dd9819 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -52,7 +52,7 @@ public: * After this function returns, ops becomes invalid, so don't take * references to it. Instead, copy the structure without closing * if you need to further read from it later. */ - virtual bool tryRead(SDL_IOStream &ops, const char *ext) = 0; + virtual bool tryRead(SDL_IOStream* &ops, const char *ext) = 0; }; void openRead(OpenHandler &handler,