Switched to the stdio FILE* API for handling streams to provide the expected behavior to Vorbis.
This commit is contained in:
parent
0076ea50db
commit
0b221921ed
2 changed files with 41 additions and 18 deletions
|
@ -31,7 +31,8 @@
|
|||
#include <SFML/Config.hpp>
|
||||
#include <SFML/System/InputStream.hpp>
|
||||
#include <SFML/System/Export.hpp>
|
||||
#include <fstream>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
|
||||
#ifdef ANDROID
|
||||
namespace sf
|
||||
|
@ -123,7 +124,7 @@ private:
|
|||
#ifdef ANDROID
|
||||
sf::priv::ResourceStream *m_file;
|
||||
#else
|
||||
std::ifstream m_file; ///< Standard file stream
|
||||
std::FILE* m_file; ///< stdio file stream
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue