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: clanCoreSeverity: 3 - Normal
Item Group: Incorrect BehaviourStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 0.7.8
Operating System: GNU/LinuxPlanned 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" />
</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 File(s):
   
   
Comment:
   

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1