Changeset 7199 in orxonox.OLD for trunk/src/lib/util/loading
- Timestamp:
- Mar 8, 2006, 10:46:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/loading/resource_manager.cc
r7196 r7199 451 451 tmpResource->param[0] = param0; 452 452 tmpResource->param[1] = param1; 453 tmpResource->pointer = new MD2Data(fullName, tmpResource->param[0].get String(), tmpResource->param[1].getFloat());453 tmpResource->pointer = new MD2Data(fullName, tmpResource->param[0].getCString(), tmpResource->param[1].getFloat()); 454 454 } 455 455 break; … … 520 520 { 521 521 MultiType param = param0; /// HACK 522 char* secFullName = ResourceManager::getFullName(param.get String());522 char* secFullName = ResourceManager::getFullName(param.getCString()); 523 523 if (ResourceManager::isFile(secFullName)) 524 524 { … … 747 747 int len = strlen(ResourceManager::ResourceTypeToChar(this->resourceList[i]->type)); 748 748 len += strlen(this->resourceList[i]->name); 749 if (this->resourceList[i]->param[0].get String()) len += strlen(this->resourceList[i]->param[0].getString()) +1;750 if (this->resourceList[i]->param[1].get String()) len += strlen(this->resourceList[i]->param[1].getString()) +1;751 if (this->resourceList[i]->param[2].get String()) len += strlen(this->resourceList[i]->param[2].getString()) +1;749 if (this->resourceList[i]->param[0].getCString()) len += strlen(this->resourceList[i]->param[0].getCString()) +1; 750 if (this->resourceList[i]->param[1].getCString()) len += strlen(this->resourceList[i]->param[1].getCString()) +1; 751 if (this->resourceList[i]->param[2].getCString()) len += strlen(this->resourceList[i]->param[2].getCString()) +1; 752 752 len += 10; 753 753 char* tmp = new char[len]; … … 756 756 strcat(tmp,","); 757 757 strcat (tmp, this->resourceList[i]->name); 758 if (this->resourceList[i]->param[0].get String() && this->resourceList[i]->param[0].getString() != '\0')758 if (this->resourceList[i]->param[0].getCString() && this->resourceList[i]->param[0].getCString() != '\0') 759 759 { 760 760 strcat(tmp,","); 761 strcat( tmp, this->resourceList[i]->param[0].get String());762 } 763 if (this->resourceList[i]->param[1].get String() && this->resourceList[i]->param[1].getString() != '\0')761 strcat( tmp, this->resourceList[i]->param[0].getCString()); 762 } 763 if (this->resourceList[i]->param[1].getCString() && this->resourceList[i]->param[1].getCString() != '\0') 764 764 { 765 765 strcat(tmp,","); 766 strcat( tmp, this->resourceList[i]->param[1].get String());767 } 768 if (this->resourceList[i]->param[2].get String() && this->resourceList[i]->param[2].getString() != '\0')766 strcat( tmp, this->resourceList[i]->param[1].getCString()); 767 } 768 if (this->resourceList[i]->param[2].getCString() && this->resourceList[i]->param[2].getCString() != '\0') 769 769 { 770 770 strcat(tmp,","); 771 strcat( tmp, this->resourceList[i]->param[2].get String());771 strcat( tmp, this->resourceList[i]->param[2].getCString()); 772 772 } 773 773 return tmp;
Note: See TracChangeset
for help on using the changeset viewer.