Skip to content

Commit

Permalink
ysfx: correctly return file_avail in text mode
Browse files Browse the repository at this point in the history
return values were inverted
  • Loading branch information
JoepVanlier committed Aug 30, 2024
1 parent d99ca0e commit 5de4665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ysfx_api_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int32_t ysfx_text_file_t::avail()
if (!m_stream || ferror(m_stream.get()))
return -1;

return (feof(m_stream.get()) == 0) ? 0 : 1;
return (feof(m_stream.get()) == 0) ? 1 : 0;
}

void ysfx_text_file_t::rewind()
Expand Down

0 comments on commit 5de4665

Please sign in to comment.