Guest User

Untitled

a guest
Apr 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. int j = 0;
  2. int k = 0;
  3. strcpy(szPath, gEngfuncs.pfnGetGameDirectory());
  4. int iLength = strlen(m_pRenderModel->name)-strlen(szModel)-4;
  5. while(1)
  6. {
  7. if(j >= iLength || m_pRenderModel->name[j] == '/'
  8. || m_pRenderModel->name[j] == '\\')
  9. {
  10. k = 0; j++;
  11. strcat(szPath, "/");
  12. strcat(szPath, szFolder);
  13. CreateDirectory(szPath, NULL);
  14.  
  15. if(j >= iLength)
  16. break;
  17. }
  18.  
  19. szFolder[k] = m_pRenderModel->name[j];
  20. j++; k++; szFolder[k] = '\0';
  21. }
Add Comment
Please, Sign In to add comment