diff options
author | chai <chaifix@163.com> | 2021-10-26 09:48:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-26 09:48:47 +0800 |
commit | ef7aedf5f272c52247d8ee9522d7b2896d21af63 (patch) | |
tree | c1259190bd51ed1225017507cd01612cc5a73a8c /Runtime/FileSystem | |
parent | e7c760c884d90ef22fe46508b18081fe6e0f9291 (diff) |
*misc
Diffstat (limited to 'Runtime/FileSystem')
-rw-r--r-- | Runtime/FileSystem/File.h | 7 | ||||
-rw-r--r-- | Runtime/FileSystem/FileJobs.cpp | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Runtime/FileSystem/File.h b/Runtime/FileSystem/File.h index 19e780d..b0d720c 100644 --- a/Runtime/FileSystem/File.h +++ b/Runtime/FileSystem/File.h @@ -1,9 +1,12 @@ #pragma once #include "Runtime/Lua/LuaHelper.h" -class File +class File : public LuaBind::NativeClass<File> { public: + File(LuaBind::VM* vm); + char* data; + int length; -}; +};
\ No newline at end of file diff --git a/Runtime/FileSystem/FileJobs.cpp b/Runtime/FileSystem/FileJobs.cpp index 29e99a4..554dc5b 100644 --- a/Runtime/FileSystem/FileJobs.cpp +++ b/Runtime/FileSystem/FileJobs.cpp @@ -12,6 +12,7 @@ void ReadFilesJob::Dispacth(void* param) state.Call(0, 0); } +// 每次读一个文件 void ReadFilesJob::Process() { if (IsFinished()) |