mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
7871e9fbc1
- was doing a strlen first on path to calculate the length - stored at least three local variables for string constants - did another memcmp check after doing the length comparison conditional first Simplify all this into a simple string comparison checking if the path starts with the string 'vfsonly://' and/or 'cdrom://' - avoid both strlen and memcmp cost. Also removed the need for stdstring.h header include - just translated STRLEN_CONST into (sizeof(x)-1) - no header file dependency for the only usage of stdstring.h in this file