Skip to content

Commit 54c5e5e

Browse files
committed
renamed
1 parent 6d0de53 commit 54c5e5e

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# gm_yourmother
2-
Some subheading here.
1+
# gm_mount
2+
Mount content to your GMod virtual filesystem
33

44
## Description
5-
Some description here.
5+
This module allows you to mount content (specifically targeted towards other games) to your virtual filesystem. For documentation, see the wiki.
66

77
## Building/installation
88
1. Clone the repo
99
2. Run build-(windows/linux).(bat/sh)
10-
3. Move ./bin/gm_yourmother.dll to GarrysMod/garrysmod/lua/bin/gm(sv/cl)_yourmother.dll
11-
4. `require("yourmother")` from menu state to test
10+
3. Move ./bin/gm_mount.dll to GarrysMod/garrysmod/lua/bin/gm(sv/cl)_mount.dll
11+
4. `require("mount")` from menu state to test

premake5.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
solution "gm_yourmother"
1+
solution "gm_mount"
22
language "C++"
33
architecture "x86"
44
location "project"
@@ -15,7 +15,7 @@ solution "gm_yourmother"
1515
flags "symbols" -- Generate debugging information
1616
optimize "On" -- Optimize the build output for size and speed
1717

18-
project "gm_yourmother"
18+
project "gm_mount"
1919
kind "SharedLib"
2020
include "LuaInterface"
2121
include "SourceSDK/Tier0"

src/main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using namespace GarrysMod;
1313

1414
IFileSystem *g_FileSystem;
1515

16-
int yourmother_Mount(lua_State *state) {
16+
int mount_Mount(lua_State *state) {
1717
LUA->CheckType(1, Lua::Type::STRING); // path
1818
LUA->CheckType(2, Lua::Type::STRING); // pathId
1919

@@ -34,7 +34,7 @@ int yourmother_Mount(lua_State *state) {
3434
return 0;
3535
}
3636

37-
int yourmother_Unmount(lua_State *state) {
37+
int mount_Unmount(lua_State *state) {
3838
LUA->CheckType(1, Lua::Type::STRING); // path
3939
LUA->CheckType(2, Lua::Type::STRING); // pathId
4040

@@ -43,7 +43,7 @@ int yourmother_Unmount(lua_State *state) {
4343
return 0;
4444
}
4545

46-
int yourmother_PrintSearchPaths(lua_State *state) {
46+
int mount_PrintSearchPaths(lua_State *state) {
4747
g_FileSystem->PrintSearchPaths();
4848

4949
return 0;
@@ -54,22 +54,22 @@ GMOD_MODULE_OPEN() {
5454
g_FileSystem = (IFileSystem*)FileSystem_StdioFactory("VFileSystem022", NULL);
5555

5656
if (g_FileSystem == NULL) {
57-
LUA->ThrowError("gm_yourmother: Error getting IFileSystem interface.");
57+
LUA->ThrowError("gm_mount: Error getting IFileSystem interface.");
5858

5959
return 0;
6060
}
6161

6262
LUA->PushSpecial(Lua::SPECIAL_GLOB);
6363
LUA->CreateTable();
64-
LUA->PushCFunction(yourmother_Mount);
64+
LUA->PushCFunction(mount_Mount);
6565
LUA->SetField(-2, "Mount");
6666

67-
LUA->PushCFunction(yourmother_Unmount);
67+
LUA->PushCFunction(mount_Unmount);
6868
LUA->SetField(-2, "Unmount");
6969

70-
LUA->PushCFunction(yourmother_PrintSearchPaths);
70+
LUA->PushCFunction(mount_PrintSearchPaths);
7171
LUA->SetField(-2, "PrintSearchPaths");
72-
LUA->SetField(-2, "yourmother");
72+
LUA->SetField(-2, "mount");
7373

7474
LUA->PushNumber(PATH_ADD_TO_HEAD);
7575
LUA->SetField(-2, "PATH_ADD_TO_HEAD");

0 commit comments

Comments
 (0)