| 1234567891011121314151617181920212223 |
- // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Resource/ScriptResource.h>
- #include <AnKi/Util/File.h>
- namespace anki {
- Error ScriptResource::load(const ResourceFilename& filename, [[maybe_unused]] Bool async)
- {
- ResourceFilePtr file;
- ANKI_CHECK(openFile(filename, file));
- ResourceString src;
- ANKI_CHECK(file->readAllText(src));
- m_source = std::move(src);
- return Error::kNone;
- }
- } // end namespace anki
|