Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Addition to 43ad080
  • Loading branch information
Xottab-DUTY committed Jul 22, 2024
1 parent 4327096 commit 419fe72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/xrCore/xr_ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class XRCORE_API CInifile
void save_at_end(bool b) noexcept { m_flags.set(eSaveAtEnd, b); }
void set_readonly(bool b) noexcept { m_flags.set(eReadOnly, b); }
void set_override_names(bool b) noexcept { m_flags.set(eOverrideNames, b); }
pcstr fname() const /*noexcept*/ { return m_file_name; };
pcstr fname() const noexcept { return m_file_name; }
Sect& r_section(pcstr S) const;
Sect& r_section(const shared_str& S) const;
bool line_exist(pcstr S, pcstr L)const;
Expand Down
8 changes: 4 additions & 4 deletions src/xrServerEntities/script_ini_file_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ static void CScriptIniFile_Export(lua_State* luaState)
.def("w_u64", &CScriptIniFile::w_u64)
.def("w_u8", &CScriptIniFile::w_u8)
.def("save_as", &CScriptIniFile::save_as)
.def("save_at_end", &CInifile::save_at_end)
.def("save_at_end", +[](CScriptIniFile* self, bool value) { self->save_at_end(value); })
.def("remove_line", &CScriptIniFile::remove_line)
.def("set_override_names", &CInifile::set_override_names)
.def("set_override_names", +[](CScriptIniFile* self, bool value) { self->set_override_names(value); })
.def("section_count", &CScriptIniFile::section_count)
.def("section_for_each", +[](CScriptIniFile* self, const luabind::functor<void>& functor)
{
Expand All @@ -113,9 +113,9 @@ static void CScriptIniFile_Export(lua_State* luaState)
functor(section->Name.c_str());
}
})
.def("set_readonly", &CInifile::set_readonly)
.def("set_readonly", +[](CScriptIniFile* self, bool value) { self->set_readonly(value); })
//Alundaio: END
.def("fname", &CScriptIniFile::fname)
.def("fname", +[](const CScriptIniFile* self) { return self->fname(); })
.def("section_exist", (bool (CScriptIniFile::*)(pcstr) const)&CScriptIniFile::section_exist)
.def("line_exist", (bool (CScriptIniFile::*)(pcstr, pcstr) const)&CScriptIniFile::line_exist)
.def("r_clsid", &CScriptIniFile::r_clsid)
Expand Down

0 comments on commit 419fe72

Please sign in to comment.