Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3130 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Dec 8, 2004, 12:37:23 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/images: now really works on Windows

Location:
orxonox/branches/images/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/framework.cc

    r3128 r3130  
    11#include "framework.h"
    22
    3 int verbose = 1;
     3int verbose = 2;
    44
    55void DrawGLScene()
  • orxonox/branches/images/importer/material.cc

    r3129 r3130  
    6060  char* tmpPName = new char[strlen(pName)];
    6161  strncpy(tmpPName, pName, strlen(pName)-1);
    62 
     62  tmpPName[strlen(pName)-1] = '\0';
     63  printf ("%s\n",tmpPName);
    6364  if (access (tmpPName, F_OK) == 0)
    6465    {
     
    7677      else
    7778        if (verbose >=1)
    78           printf ("You tried to add non-folder %s to a PathList.\n", pName);
     79          printf ("You tried to add non-folder %s to a PathList.\n", tmpPName);
    7980    }
    8081  else
    8182    if (verbose >=1)
    82       printf ("You tried to add non-existing folder %s to a PathList.\n", pName);
     83      printf ("You tried to add non-existing folder %s to a PathList.\n", tmpPName);
    8384  delete []tmpPName;
    8485}
Note: See TracChangeset for help on using the changeset viewer.