Skip to content

Commit

Permalink
Possible linux/mac fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed May 25, 2018
1 parent ddaea02 commit 4461eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/RageFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ class LunaRageFile: public Luna<RageFile>
static int destroy( T* p, lua_State *L )
{
SAFE_DELETE(p);
lua_pushboolean( L, true);
return 1;
}

Expand All @@ -358,6 +359,7 @@ class LunaRageFile: public Luna<RageFile>
static int Close( T* p, lua_State *L )
{
p->Close();
lua_pushboolean( L, true);
return 1;
}

Expand Down
3 changes: 2 additions & 1 deletion src/ThemeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ bool ThemeManager::GetPathInfo( PathInfo &out, ElementCategory category, const R
RString ThemeManager::GetPath( ElementCategory category, const RString &sMetricsGroup, const RString &sElement, bool bOptional )
{
PathInfo pi;
GetPathInfo( pi, category, sMetricsGroup, sElement, bOptional );
if(!GetPathInfo( pi, category, sMetricsGroup, sElement, bOptional ))
return "";
if(!bOptional && pi.sResolvedPath.empty())
{
LuaHelpers::ReportScriptErrorFmt("Theme element not found and not "
Expand Down

0 comments on commit 4461eb0

Please sign in to comment.