mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2026-04-07 17:33:33 +00:00
move remove_name_in_path() into util.c
add version_as_string() to util.c
This commit is contained in:
13
src/cdll.c
13
src/cdll.c
@@ -1,6 +1,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include "cdll.h"
|
||||
#include "util.h"
|
||||
|
||||
/*******************************************************************************/
|
||||
/** GET VOICEMEETER DIRECTORY **/
|
||||
@@ -12,18 +13,6 @@
|
||||
#define KEY_WOW64_32KEY 0x0200
|
||||
#endif
|
||||
|
||||
void remove_name_in_path(char *szPath)
|
||||
{
|
||||
char *p = szPath;
|
||||
|
||||
while (*p++)
|
||||
;
|
||||
while (p > szPath && *p != '\\')
|
||||
p--;
|
||||
if (*p == '\\')
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
bool __cdecl registry_get_voicemeeter_folder(char *szDir)
|
||||
{
|
||||
char szKey[256];
|
||||
|
||||
Reference in New Issue
Block a user