diff options
author | chai <chaifix@163.com> | 2019-03-26 09:09:02 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-26 09:09:02 +0800 |
commit | d9041d6e12ded456c17622f7f2e7bbacb9e99b1a (patch) | |
tree | 6fd4febeb79b9b5efb5341ea352e05cd7752f5e8 /source/libs/asura-lib-utils/io/binding/_file_system.cpp | |
parent | 70f8aa8d1a3c15bd1eee3cdd88b9b9ce8970fae5 (diff) |
*misc
Diffstat (limited to 'source/libs/asura-lib-utils/io/binding/_file_system.cpp')
-rw-r--r-- | source/libs/asura-lib-utils/io/binding/_file_system.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/libs/asura-lib-utils/io/binding/_file_system.cpp b/source/libs/asura-lib-utils/io/binding/_file_system.cpp index e790888..7132456 100644 --- a/source/libs/asura-lib-utils/io/binding/_file_system.cpp +++ b/source/libs/asura-lib-utils/io/binding/_file_system.cpp @@ -51,8 +51,8 @@ namespace AsuraEngine return 0; } - // successed = Filesystem.Mount(path, mountpoint, prepend) - // successed = Filesystem.Mount(data buffer, archievename, mountpoint, prepend) + // successed = Filesystem.Mount(path, mountpoint[, prepend = false]) + // successed = Filesystem.Mount(data buffer, archievename, mountpoint[, prepend = false]) LUAX_IMPL_METHOD(Filesystem, _Mount) { PREPARE(L); @@ -177,7 +177,7 @@ namespace AsuraEngine } // successed = Filesystem.Append(path, data buffer) - LUAX_IMPL_METHOD(Filesystem, _Write) + LUAX_IMPL_METHOD(Filesystem, _Append) { PREPARE(L); @@ -219,8 +219,6 @@ namespace AsuraEngine } // fileinfo = Filesystem.GetFileInfo(path) - // fileinfoĸʽ: - // {size = , modtime = , type =} LUAX_IMPL_METHOD(Filesystem, _GetFileInfo) { PREPARE(L); @@ -231,7 +229,7 @@ namespace AsuraEngine { lua_newtable(L); // info table state.SetField(-1, "size", info.size); - state.SetField(-1, "modetime", info.modtime); + state.SetField(-1, "modtime", info.modtime); state.SetField(-1, "type", info.type); } else @@ -264,4 +262,4 @@ namespace AsuraEngine } } -} +}
\ No newline at end of file |