Re: [AD] Allegro 5 new config routines, alpha 2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> 
> I thought about that too, but then, wouldn't *every* path start with "/"? 
> Instead of absolute, we should make it relative to the root. That's one less 
> character to compare for in the hash function :)
> 

Yes, but I think I wasn't clear why I actually wanted the first parameter:

Right now I have code like this:

{
  {
    sprintf(temp, "%s/blah", path);
    val = al_get_int(temp);
  }
}

But it would be nicer to just use:

{
  val = al_get_int(path, "blah");
}

--
Elias Pschernig



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/