aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/fs/filesystem.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-27 17:39:09 +0800
committerchai <chaifix@163.com>2018-05-27 17:39:09 +0800
commit4f3ea475b0c72cf83175cc69bdd128b7a306523b (patch)
tree9cfab06aabccc112f1f0217810048cbd30666ed0 /src/libjin/fs/filesystem.cpp
parent6cc59854d349a02263a5d27810fb824a9f4d1fde (diff)
更新音频模块
Diffstat (limited to 'src/libjin/fs/filesystem.cpp')
-rw-r--r--src/libjin/fs/filesystem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libjin/fs/filesystem.cpp b/src/libjin/fs/filesystem.cpp
index 72f1144..af94034 100644
--- a/src/libjin/fs/filesystem.cpp
+++ b/src/libjin/fs/filesystem.cpp
@@ -12,7 +12,7 @@ namespace fs
Filesystem::Filesystem()
{
- S = sm_newshared();
+ S = smtnewshared();
}
Filesystem* Filesystem::get()
@@ -25,10 +25,10 @@ namespace fs
*/
void Filesystem::mount(const char * path)
{
- int err = sm_mount(S, path);
+ int err = smtmount(S, path);
if (err)
{
- printf("%s mounted path %s", sm_errstr(err), path);
+ printf("%s mounted path %s", smterrstr(err), path);
exit(1);
}
}
@@ -38,7 +38,7 @@ namespace fs
*/
int Filesystem::read(const char* path, Buffer* buffer)
{
- buffer->data = sm_read(S, path, &buffer->size);
+ buffer->data = smtread(S, path, &buffer->size);
if (buffer->data == 0)
return 0;
return 1;
@@ -46,22 +46,22 @@ namespace fs
const char* Filesystem::getFull(const char* path)
{
- return sm_fullpath(S, path);
+ return smtfullpath(S, path);
}
bool Filesystem::isDir(const char* path)
{
- return sm_isdir(S, path);
+ return smtisdir(S, path);
}
bool Filesystem::isFile(const char* path)
{
- return sm_isreg(S, path);
+ return smtisreg(S, path);
}
bool Filesystem::exists(const char* path)
{
- return sm_exists(S, path) == 0;
+ return smtexists(S, path) == 0;
}
}