Skip to content

Commit

Permalink
1.12 | Fix the error of '\' and '%'
Browse files Browse the repository at this point in the history
  • Loading branch information
AOSTL committed Oct 13, 2023
1 parent 8360637 commit 3b88b2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified Release/mtg.exe
Binary file not shown.
7 changes: 5 additions & 2 deletions Source/mtg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ void convert(std::string* filePath)
res+=" +\n \"";
if (c=='\n')
res+="\\n\"";
else
res+=c;
else if (c=='\\')
res+="\\\\";
else if (c=='%')
res+="%%%%";
else res+=c;
c_pre=c;
}
if (c_pre=='\n')
Expand Down

0 comments on commit 3b88b2d

Please sign in to comment.