bugClanLib - Bugs: bug #9983, Conflicts between two resources...


bug #9983: Conflicts between two resources which have the same name

Submitted by:  STINNER Victor <haypo>
Submitted on:  Wed 11 Aug 2004 10:43:32 PM UTC  
Category:  clanCore Severity:  3 - Normal
Item Group:  Incorrect Behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  0.7.8
Operating System:  GNU/Linux Planned Release:  0.7.8

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 11 Aug 2004 10:43:32 PM UTC, original submission:  

If two resources have to same name, it causes conflicts. E.g. :
<surface name="mine" file="1.png" >
<sprite name="mine">
  <image file="2.png" />

So the code CL_Surface mine("mine", resources); will try to open 2.png, a sprite, not a surface !

Solution : Forbid using of two resources which have the same name.
=> CL_Resource &CL_ResourceManager::get_resource(const std::string &res_id) ==> CL_Resource &CL_ResourceManager_Generic::get_resource(const std::string &res_id) should  test if only one result exists.


STINNER Victor <haypo>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.5