Skip to content

Commit

Permalink
Update fileSystem.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko authored Feb 7, 2024
1 parent 80d0141 commit 1e48126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fileSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ class loadMacroPopup : public geode::Popup<std::string const&> {
fileOptions.filters.push_back(textFilter);

file::pickFile(file::PickMode::OpenFile , fileOptions, [this](ghc::filesystem::path result) {
auto path = ghc::filesystem::path(result.c_str());
auto path = std::filesystem::path(result.c_str());
bool wa;

try {
wa = ghc::filesystem::copy_file(path, Mod::get()->getSaveDir().string()
wa = std::filesystem::copy_file(path, Mod::get()->getSaveDir().string()
+ "\\" + path.filename().string());
} catch (ghc::filesystem::filesystem_error e) {
} catch (std::filesystem::filesystem_error e) {
FLAlertLayer::create(
"Import Macro",
"An <cr>error<c/> occurred while importing this macro.",
Expand Down

0 comments on commit 1e48126

Please sign in to comment.