mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +00:00
...
This commit is contained in:
parent
2621b4a0fd
commit
d44bd2d583
1 changed files with 1 additions and 2 deletions
|
@ -115,8 +115,7 @@ if path doesn't have an extension, then append
|
|||
the specified one (which should include the .)
|
||||
==================
|
||||
*/
|
||||
void COM_DefaultExtension( char *path, size_t maxSize, const char *extension )
|
||||
{
|
||||
void COM_DefaultExtension( char *path, size_t maxSize, const char *extension ) {
|
||||
const char *dot = strrchr(path, '.'), *slash;
|
||||
if (dot && (!(slash = strrchr(path, '/')) || slash < dot))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue