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

 
 

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

Submitter:  STINNER Victor <haypo>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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" />
</sprite>
---

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.

Haypo

STINNER Victor <haypo>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code