summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/io/binding/_file_system.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 00:43:25 +0800
committerchai <chaifix@163.com>2019-03-29 00:43:25 +0800
commitf4c338c63f3456a8eccd56c35e233843687d55be (patch)
tree7278fe4723320c9ef310c5a04d92bf0be1bc778c /source/libs/asura-lib-utils/io/binding/_file_system.cpp
parent3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (diff)
*thread
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.cpp22
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))
{