From d20e722f4f050a167e7590035182302c049723f8 Mon Sep 17 00:00:00 2001 From: Hoe Hao Cheng Date: Sun, 19 Feb 2023 04:28:48 +0800 Subject: [PATCH] fix path string on MinGW --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ebe0e62..db95d0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -700,12 +700,12 @@ int main(int argc, char** argv) if (modelname == PATHSTR("realesr-animevideov3")) { - swprintf(parampath, 256, L"%s/%s-x%s.param", model.c_str(), modelname.c_str(), std::to_string(scale)); - swprintf(modelpath, 256, L"%s/%s-x%s.bin", model.c_str(), modelname.c_str(), std::to_string(scale)); + swprintf(parampath, 256, L"%ls/%ls-x%ls.param", model.c_str(), modelname.c_str(), std::to_wstring(scale)); + swprintf(modelpath, 256, L"%ls/%ls-x%ls.bin", model.c_str(), modelname.c_str(), std::to_wstring(scale)); } else{ - swprintf(parampath, 256, L"%s/%s.param", model.c_str(), modelname.c_str()); - swprintf(modelpath, 256, L"%s/%s.bin", model.c_str(), modelname.c_str()); + swprintf(parampath, 256, L"%ls/%ls.param", model.c_str(), modelname.c_str()); + swprintf(modelpath, 256, L"%ls/%ls.bin", model.c_str(), modelname.c_str()); } #else