MantisBT - VCMI
View Issue Details
0001046VCMIOtherpublic2012-08-06 06:382014-05-30 17:41
Tow 
Ivan 
normalblockalways
closedfixed 
 
 
0001046: VCMI fails to handle config/ subfolder in SVN working copy
I build VCMI in my SVN working copy folder and run it from there. Therefore my DATA_DIR points to the SVN working copy.

The filesystem fails to correctly handle config/ subfolder.
In CResourceHandler::loadFileSystem the initialLoader->getResourceName is called with "GLOBAL/CONFIG" and this gets resolved to "./config.sub". Filesystem tries to add loader for it, which is obviously pointless. The config/ subfolder is ignored. That causes VCMI to exit soon later, when unable to load settings.

I think that when adding loaders as defined in filesystem.json if entry has "type" of "dir" only dirs should be taken into account.
No tags attached.
Issue History
2012-08-06 06:38TowNew Issue
2012-08-06 06:38TowStatusnew => assigned
2012-08-06 06:38TowAssigned To => Ivan
2012-08-06 07:37IvanNote Added: 0002842
2012-08-06 07:37IvanStatusassigned => resolved
2012-08-06 07:37IvanResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002842)
Ivan   
2012-08-06 07:37   
Should be fixed in rev 2812
Simple check for directories, may need improvements in future.