Skip to content

Commit

Permalink
fix path string on MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
hch12907 committed Feb 18, 2023
1 parent 9d7070a commit d20e722
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d20e722

Please sign in to comment.