mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #12 from lioncash/filebrowser
FileBrowser: Move constructor definition into cpp file
This commit is contained in:
commit
5d80d7e81a
|
@ -226,8 +226,7 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
||||||
std::function<void(bool, hecl::SystemStringView)> returnFunc)
|
std::function<void(bool, hecl::SystemStringView)> returnFunc);
|
||||||
: FileBrowser(res, parentView, title, type, hecl::GetcwdStr(), returnFunc) {}
|
|
||||||
FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
||||||
hecl::SystemStringView initialPath, std::function<void(bool, hecl::SystemStringView)> returnFunc);
|
hecl::SystemStringView initialPath, std::function<void(bool, hecl::SystemStringView)> returnFunc);
|
||||||
~FileBrowser() override;
|
~FileBrowser() override;
|
||||||
|
|
|
@ -43,6 +43,10 @@ std::vector<hecl::SystemString> FileBrowser::PathComponents(hecl::SystemStringVi
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FileBrowser::FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
||||||
|
std::function<void(bool, hecl::SystemStringView)> returnFunc)
|
||||||
|
: FileBrowser(res, parentView, title, type, hecl::GetcwdStr(), std::move(returnFunc)) {}
|
||||||
|
|
||||||
FileBrowser::FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
FileBrowser::FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type,
|
||||||
hecl::SystemStringView initialPath,
|
hecl::SystemStringView initialPath,
|
||||||
std::function<void(bool, hecl::SystemStringView)> returnFunc)
|
std::function<void(bool, hecl::SystemStringView)> returnFunc)
|
||||||
|
|
Loading…
Reference in New Issue