KEMBAR78
AGS: Fix FileStream::EOS when used on a file opened for writing by lephilousophe · Pull Request #4700 · scummvm/scummvm · GitHub
Skip to content

Conversation

@lephilousophe
Copy link
Member

EOS should always return false in this case.

This should fix #13417.
If this works, this needs to be backported to 2.7

EOS should always return false in this case.
@dwatteau
Copy link
Contributor

Thank you @lephilousophe. Unfortunately, this doesn't solve the issue, as EOS() is still true with this change, and so the RICH_GAME_MEDIA_HEADER headers are still missing on big-endian ppc.

As the cursor is always at the end of the stream, BufferedStream::EOS()
always return true.
We check for errors when writing so no check is needed here.
@dwatteau
Copy link
Contributor

Now ok on big-endian with the new commit! Thanks

@lephilousophe
Copy link
Member Author

I propose to keep the first commit as it still behaves better than before.

@lephilousophe
Copy link
Member Author

Merging now

@lephilousophe lephilousophe merged commit 14d3afb into scummvm:master Feb 12, 2023
@lephilousophe lephilousophe deleted the fix-eos branch February 12, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants