MCPcopy Create free account
hub / github.com/defold/defold / Resource_RemoveMount

Function Resource_RemoveMount

engine/liveupdate/src/script_liveupdate.cpp:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

CheckHashOrStringFunction · 0.85
IsReservedMountNameFunction · 0.85
RemoveMountSyncFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected