MSVC build fix

The fs::path on MSVC doesn't convert to string automatically
This commit is contained in:
Paul Fd 2023-09-24 23:27:44 +02:00 committed by Paul Ferrand
parent 5afabd4429
commit 5d663a7969

View file

@ -22,7 +22,7 @@ tresult SfizzVstState::load(IBStream* state)
return kResultFalse; return kResultFalse;
if (const char* str = s.readStr8()) if (const char* str = s.readStr8())
sfzFile = fromPlatformAgnosticPath(str); sfzFile = fromPlatformAgnosticPath(str).string();
else else
return kResultFalse; return kResultFalse;
@ -42,7 +42,7 @@ tresult SfizzVstState::load(IBStream* state)
if (version >= 1) { if (version >= 1) {
if (const char* str = s.readStr8()) if (const char* str = s.readStr8())
scalaFile = fromPlatformAgnosticPath(str); scalaFile = fromPlatformAgnosticPath(str).string();
else else
return kResultFalse; return kResultFalse;