From 5d663a79694f606dae4091fb5ee3d8d54e25cf3d Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sun, 24 Sep 2023 23:27:44 +0200 Subject: [PATCH] MSVC build fix The fs::path on MSVC doesn't convert to string automatically --- plugins/vst/SfizzVstState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vst/SfizzVstState.cpp b/plugins/vst/SfizzVstState.cpp index f11e1fd..1108015 100644 --- a/plugins/vst/SfizzVstState.cpp +++ b/plugins/vst/SfizzVstState.cpp @@ -22,7 +22,7 @@ tresult SfizzVstState::load(IBStream* state) return kResultFalse; if (const char* str = s.readStr8()) - sfzFile = fromPlatformAgnosticPath(str); + sfzFile = fromPlatformAgnosticPath(str).string(); else return kResultFalse; @@ -42,7 +42,7 @@ tresult SfizzVstState::load(IBStream* state) if (version >= 1) { if (const char* str = s.readStr8()) - scalaFile = fromPlatformAgnosticPath(str); + scalaFile = fromPlatformAgnosticPath(str).string(); else return kResultFalse;