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