Page 1 of 1

CFileSystem::removeFileArchive not handling Windows path

Posted: Fri Aug 01, 2014 1:17 pm
by robmar
CFileSystem::removeFileArchive is not handling Windows path backstrokes, it uses internally forward stroke as the separator, so the compare function is failing under windows.

Re: CFileSystem::removeFileArchive not handling Windows path

Posted: Sun Aug 03, 2014 8:10 am
by chronologicaldot
You could always write a function that changes the windows paths and make that function active if _MSC_VER is defined. Working with the forward stroke is easier since it isn't the escape character and thus we wouldn't be scanning for \\ every time we mess with path strings.

Re: CFileSystem::removeFileArchive not handling Windows path

Posted: Sun Aug 03, 2014 9:34 am
by robmar
Yes, that´s what I´ve done using Irrlicht .replace function.

Thought that should be incorporated into Irrlicht as if not the archives don´t get released under windows and there is no error message.

Re: CFileSystem::removeFileArchive not handling Windows path

Posted: Sun Aug 03, 2014 10:04 am
by CuteAlien
Yeah, should probably be handled by Irrlicht. Sorry, I'm not working on Irrlicht for a few more weeks, but will go through the bug reports again when I'm back next month.

Re: CFileSystem::removeFileArchive not handling Windows path

Posted: Sun Aug 03, 2014 10:15 am
by robmar
Its a lot of work right, and I mean the DX11 driver, that must be a headache too!

Constant moving targets, soon it will be DX12, and then there is the new AMD driver for heterogeneous CPU-PU memory...