@@ -13,7 +13,7 @@ using namespace GarrysMod;
13
13
14
14
IFileSystem *g_FileSystem;
15
15
16
- int yourmother_Mount (lua_State *state) {
16
+ int mount_Mount (lua_State *state) {
17
17
LUA->CheckType (1 , Lua::Type::STRING); // path
18
18
LUA->CheckType (2 , Lua::Type::STRING); // pathId
19
19
@@ -34,7 +34,7 @@ int yourmother_Mount(lua_State *state) {
34
34
return 0 ;
35
35
}
36
36
37
- int yourmother_Unmount (lua_State *state) {
37
+ int mount_Unmount (lua_State *state) {
38
38
LUA->CheckType (1 , Lua::Type::STRING); // path
39
39
LUA->CheckType (2 , Lua::Type::STRING); // pathId
40
40
@@ -43,7 +43,7 @@ int yourmother_Unmount(lua_State *state) {
43
43
return 0 ;
44
44
}
45
45
46
- int yourmother_PrintSearchPaths (lua_State *state) {
46
+ int mount_PrintSearchPaths (lua_State *state) {
47
47
g_FileSystem->PrintSearchPaths ();
48
48
49
49
return 0 ;
@@ -54,22 +54,22 @@ GMOD_MODULE_OPEN() {
54
54
g_FileSystem = (IFileSystem*)FileSystem_StdioFactory (" VFileSystem022" , NULL );
55
55
56
56
if (g_FileSystem == NULL ) {
57
- LUA->ThrowError (" gm_yourmother : Error getting IFileSystem interface." );
57
+ LUA->ThrowError (" gm_mount : Error getting IFileSystem interface." );
58
58
59
59
return 0 ;
60
60
}
61
61
62
62
LUA->PushSpecial (Lua::SPECIAL_GLOB);
63
63
LUA->CreateTable ();
64
- LUA->PushCFunction (yourmother_Mount );
64
+ LUA->PushCFunction (mount_Mount );
65
65
LUA->SetField (-2 , " Mount" );
66
66
67
- LUA->PushCFunction (yourmother_Unmount );
67
+ LUA->PushCFunction (mount_Unmount );
68
68
LUA->SetField (-2 , " Unmount" );
69
69
70
- LUA->PushCFunction (yourmother_PrintSearchPaths );
70
+ LUA->PushCFunction (mount_PrintSearchPaths );
71
71
LUA->SetField (-2 , " PrintSearchPaths" );
72
- LUA->SetField (-2 , " yourmother " );
72
+ LUA->SetField (-2 , " mount " );
73
73
74
74
LUA->PushNumber (PATH_ADD_TO_HEAD);
75
75
LUA->SetField (-2 , " PATH_ADD_TO_HEAD" );
0 commit comments