mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 06:48:26 -04:00
[misc] add Ctrl-SELECT option to provide additional content
* For now only .zip archives are supported
This commit is contained in:
parent
71ede6d9a0
commit
e554d2b4e0
7 changed files with 63 additions and 16 deletions
|
@ -1052,6 +1052,17 @@ static __inline int _accessU(const char* path, int mode)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static __inline const char* _filenameU(const char* path)
|
||||
{
|
||||
int i;
|
||||
if (path == NULL)
|
||||
return NULL;
|
||||
for (i = strlen(path) - 1; i >= 0; i--)
|
||||
if ((path[i] == '/') || (path[i] == '\\'))
|
||||
return &path[i + 1];
|
||||
return path;
|
||||
}
|
||||
|
||||
// returned UTF-8 string must be freed
|
||||
static __inline char* getenvU(const char* varname)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue