From 444434aff5165183fef4a8e190277762e28fa766 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Thu, 13 Jun 2024 04:14:31 +0300 Subject: [PATCH] maybe mac fix 4 --- loader/src/platform/mac/util.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loader/src/platform/mac/util.mm b/loader/src/platform/mac/util.mm index ccf76e33..88a30eab 100644 --- a/loader/src/platform/mac/util.mm +++ b/loader/src/platform/mac/util.mm @@ -1,3 +1,4 @@ +#include "Geode/utils/file.hpp" #include using namespace geode::prelude; @@ -181,14 +182,14 @@ GEODE_DLL Task> file::pick(file::PickMode mode, fi GEODE_DLL Task>> file::pickMany(file::FilePickOptions const& options) { using RetTask = Task>>; return RetTask::runWithCallback([options](auto resultCallback, auto progress, auto cancelled) { - [FileDialog dispatchFilePickerWithMode:mode options:options multiple:true onCompletion: ^(FileResult result) { + [FileDialog dispatchFilePickerWithMode: file::PickMode::OpenFile options:options multiple:true onCompletion: ^(FileResult result) { if (cancelled()) { resultCallback(RetTask::Cancel()); } else { resultCallback(result); } }]; - }) + }); } CCPoint cocos::getMousePos() {