Skip to content

Commit

Permalink
[LUA] Export FS_Path readonly class to lua. (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck authored Jan 5, 2025
1 parent de4b3fc commit 7bc2453
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/xrGame/fs_registrator_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,13 @@ SCRIPT_EXPORT(fs_registrator, (),
.def("GetAt", &FS_file_list::GetAt)
.def("Free", &FS_file_list::Free),

// XXX: uncomment
/* class_<FS_Path>("FS_Path")
.def_readonly("m_Path", &FS_Path::m_Path)
.def_readonly("m_Root", &FS_Path::m_Root)
.def_readonly("m_Add", &FS_Path::m_Add)
.def_readonly("m_DefExt", &FS_Path::m_DefExt)
.def_readonly("m_FilterCaption", &FS_Path::m_FilterCaption),
*/
class_<FS_Path>("FS_Path")
.def_readonly("m_Path", &FS_Path::m_Path)
.def_readonly("m_Root", &FS_Path::m_Root)
.def_readonly("m_Add", &FS_Path::m_Add)
.def_readonly("m_DefExt", &FS_Path::m_DefExt)
.def_readonly("m_FilterCaption", &FS_Path::m_FilterCaption),

class_<CLocatorAPI::file>("fs_file")
.def_readonly("name", &CLocatorAPI::file::name)
.def_readonly("vfs", &CLocatorAPI::file::vfs)
Expand Down

0 comments on commit 7bc2453

Please sign in to comment.