From ef7aedf5f272c52247d8ee9522d7b2896d21af63 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 26 Oct 2021 09:48:47 +0800 Subject: *misc --- Runtime/FileSystem/File.h | 7 +++++-- Runtime/FileSystem/FileJobs.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'Runtime/FileSystem') 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 { 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()) -- cgit v1.1-26-g67d0