| 86 | // ********************* |
| 87 | |
| 88 | static int Resource_RemoveMount(lua_State* L) |
| 89 | { |
| 90 | DM_LUA_STACK_CHECK(L, 1); |
| 91 | |
| 92 | dmhash_t name_hash = dmScript::CheckHashOrString(L, 1); |
| 93 | |
| 94 | if (IsReservedMountName(name_hash)) |
| 95 | return DM_LUA_ERROR("Cannot remove reserved mount: " DM_HASH_FMT, name_hash); |
| 96 | |
| 97 | dmLiveUpdate::Result result = dmLiveUpdate::RemoveMountSync(name_hash); |
| 98 | lua_pushinteger(L, result); |
| 99 | return 1; |
| 100 | } |
| 101 | |
| 102 | // ********************* |
| 103 |
nothing calls this directly
no test coverage detected