Skip to content

Commit

Permalink
Minor reformatting and comment fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed May 3, 2017
1 parent 8d4cf3c commit 448dd5d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/scripting/lua_fileops.cpp
Expand Up @@ -94,12 +94,16 @@ int intf_have_file(lua_State *L)
{
char const *m = luaL_checkstring(L, 1);
std::string p = filesystem::get_wml_location(m);
if (p.empty()) { lua_pushboolean(L, false); }
else { lua_pushboolean(L, true); }
if(p.empty()) {
lua_pushboolean(L, false);
} else {
lua_pushboolean(L, true);
}
return 1;
}

/**
* Checks if a file exists (not necessarily a Lua script).
* Reads a file into a string.
* - Arg 1: string containing the file name.
* - Ret 1: string
*/
Expand Down

0 comments on commit 448dd5d

Please sign in to comment.