diff options
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()) |