mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
changed loadBuffer to use byte* rather than char*
svn-id: r32894
This commit is contained in:
parent
48fd843e75
commit
52aba6b6da
@ -144,12 +144,13 @@ public:
|
||||
* from memory if no themes can be found.
|
||||
*
|
||||
* @param buffer Pointer to the buffer.
|
||||
* @param size Size of the buffer
|
||||
* @param disposable Sets if the XMLParser owns the buffer,
|
||||
* 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…
Reference in New Issue
Block a user