_G.emmy.fixPath = function(path) return (newPath) end
| 617 | |
| 618 | // _G.emmy.fixPath = function(path) return (newPath) end |
| 619 | int FixPath(lua_State *L) { |
| 620 | const auto path = lua_tostring(L, 1); |
| 621 | lua_getglobal(L, "emmy"); |
| 622 | if (lua_istable(L, -1)) { |
| 623 | lua_getfield(L, -1, "fixPath"); |
| 624 | if (lua_isfunction(L, -1)) { |
| 625 | lua_pushstring(L, path); |
| 626 | lua_call(L, 1, 1); |
| 627 | return 1; |
| 628 | } |
| 629 | } |
| 630 | return 0; |
| 631 | } |
| 632 | |
| 633 | std::string Debugger::GetFile(lua_Debug *ar) const { |
| 634 | if (!currentL) { |
nothing calls this directly
no test coverage detected