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 | 22 |
1 files changed, 11 insertions, 11 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 7132456..3843451 100644 --- a/source/libs/asura-lib-utils/io/binding/_file_system.cpp +++ b/source/libs/asura-lib-utils/io/binding/_file_system.cpp @@ -46,7 +46,7 @@ namespace AsuraEngine { PREPARE(L); - const char* arg0 = state.CheckParam<const char*>(1); + const char* arg0 = state.CheckValue<const char*>(1); fs->Init(arg0); return 0; } @@ -111,7 +111,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); std::string mp; if (fs->GetMountPoint(path, ASURA_OUT mp)) state.Push(mp); @@ -126,7 +126,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* dir = state.CheckParam<cc8*>(1); + cc8* dir = state.CheckValue<cc8*>(1); fs->SetWriteDirectory(dir); return 0; } @@ -146,7 +146,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* name = state.CheckParam<cc8*>(1); + cc8* name = state.CheckValue<cc8*>(1); File* file = fs->NewFile(name); if (file) file->PushLuaxUserdata(state); @@ -160,7 +160,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); state.Push(fs->NewDirectory(path)); return 1; } @@ -170,7 +170,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); DataBuffer* db = state.CheckUserdata<DataBuffer>(2); state.Push(fs->Write(path, db)); return 1; @@ -181,7 +181,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); DataBuffer* db = state.CheckUserdata<DataBuffer>(2); state.Push(fs->Append(path, db)); return 1; @@ -192,7 +192,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); state.Push(fs->Remove(path)); return 1; } @@ -202,7 +202,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); FileData* fd = fs->Read(path); if (fd) { @@ -223,7 +223,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); FileInfo info; if (fs->GetFileInfo(path, &info)) { @@ -244,7 +244,7 @@ namespace AsuraEngine { PREPARE(L); - cc8* path = state.CheckParam<cc8*>(1); + cc8* path = state.CheckValue<cc8*>(1); std::vector<std::string> items; if(fs->GetDirectoryItems(path, ASURA_OUT items)) { |