| 1102 | COMMAND(edittextureslot, "iss"); |
| 1103 | |
| 1104 | void gettextureorigin(char *fname) |
| 1105 | { |
| 1106 | if(!*fname) return; |
| 1107 | defformatstring(s)("packages/textures/%s", fname); |
| 1108 | findfile(path(s), "r"); |
| 1109 | const char *res = s; |
| 1110 | switch(findfilelocation) |
| 1111 | { |
| 1112 | case FFL_ZIP: res = "zip"; break; |
| 1113 | case FFL_WORKDIR: res = fileexists(s, "r") ? "official" : "<file not found>"; break; |
| 1114 | case FFL_HOME: res = "custom"; break; |
| 1115 | default: formatstring(s)("package dir #%d", findfilelocation); break; |
| 1116 | } |
| 1117 | result(res); |
| 1118 | } |
| 1119 | COMMAND(gettextureorigin, "s"); |
| 1120 | |
| 1121 | void textureslotbyname(char *name) // returns the slot(s) that a certain texture file is configured in |
nothing calls this directly
no test coverage detected