diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-27 07:27:37 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-11-27 07:27:37 +0100 |
commit | 2158bd3e375e1185bd180219023a443a1a154957 (patch) | |
tree | d2010a579883175574063e2d3c838330b55bbfdd /lib/Buffer.cc | |
parent | 070402f728067ed415b1e02d17823508b4dc2bcd (diff) |
Adding SetFakeName system to help with the built-ins luas loads.
Diffstat (limited to 'lib/Buffer.cc')
-rw-r--r-- | lib/Buffer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Buffer.cc b/lib/Buffer.cc index 2d615b5..9b8aa8d 100644 --- a/lib/Buffer.cc +++ b/lib/Buffer.cc @@ -104,6 +104,8 @@ bool Buffer::CanWrite() const { } String Buffer::GetName() const { + if (fake_name.strlen() != 0) + return fake_name; if (seekable) return "Buffer"; else @@ -240,3 +242,7 @@ void Buffer::reset() { realsiz = bufsiz = ptr = wptr = 0; got_eof = false; } + +void Buffer::SetFakeName(const String & _fake_name) { + fake_name = _fake_name; +} |