zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
115 stars 23 forks source link

Support non-ASCII paths on Windows #11

Closed zturtleman closed 6 years ago

zturtleman commented 6 years ago

Use wide char APIs for getting AppData and executable path in src/mm3dcore/sysconf.cc and replace stdio fopen(), fread(), etc everywhere. Need to convert WCHAR (UTF-16) to UTF-8 for storing in std::string and then convert back to UTF-16 for passing Windows API.

zturtleman commented 6 years ago

Added in f622087ff3eebc7f6a69c355c55814d7dbe187f5.