Hi,
when I'm creating a new file with Irrlichts file system, it converts all capital letters from the filename to small letters.
How can I avoid this?
Regards,
Squarefox
Caption conversion when creating file
Re: Caption conversion when creating file
Ah, I had hoped we fixed those kind of conversions long ago :-( Only one I still knew was in the file-open dialog (on my todo already).
Will have to investigate - which of the functions were you using exactly?
Will have to investigate - which of the functions were you using exactly?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Competition winner
- Posts: 117
- Joined: Tue Aug 19, 2008 6:46 pm
- Location: Delta quadrant, Borg nexus 0001
- Contact:
Re: Caption conversion when creating file
Hi,
I checked it once more: the problem is not creating the file (it's correct with capital letters).
IFileSystem::createFileList returns small letter filenames only.
The problem is in CFileSystem::createFileList when CFile is create with CFileList(Path, true, false).
The true specifies IgnoreCase.
So the filename is converted to lower caps.
The fix is simple: just change the true to false. I just tested it.
Should also give lesser problems under Linux, when the caps is important.
This also fixes the file list in the FileOpenDialog (tested also).
Regards,
Squarefox
I checked it once more: the problem is not creating the file (it's correct with capital letters).
IFileSystem::createFileList returns small letter filenames only.
The problem is in CFileSystem::createFileList when CFile is create with CFileList(Path, true, false).
The true specifies IgnoreCase.
So the filename is converted to lower caps.
The fix is simple: just change the true to false. I just tested it.
Should also give lesser problems under Linux, when the caps is important.
This also fixes the file list in the FileOpenDialog (tested also).
Regards,
Squarefox
Re: Caption conversion when creating file
Hm, discussion now split into 2 threads. I'm closing this one - thread continues there: http://irrlicht.sourceforge.net/forum/v ... =7&t=50768
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm