mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
changed loadBuffer to use byte* rather than char*
svn-id: r32893
This commit is contained in:
parent
d01594594e
commit
903a80ece3
@ -148,8 +148,8 @@ public:
|
||||
* i.e. if it can be freed safely after it's
|
||||
* no longer needed by the parser.
|
||||
*/
|
||||
virtual bool loadBuffer(const char *buffer, bool disposable = false) {
|
||||
_text.loadStream(new MemoryReadStream((const byte*)buffer, strlen(buffer), disposable));
|
||||
virtual bool loadBuffer(const byte *buffer, uint32 size, bool disposable = false) {
|
||||
_text.loadStream(new MemoryReadStream(buffer, size, disposable));
|
||||
_fileName = "Memory Stream";
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user