move remove_name_in_path() into util.c

add version_as_string() to util.c
This commit is contained in:
2024-06-28 03:21:38 +01:00
parent 0bda368f59
commit 2740c6c82d
4 changed files with 34 additions and 19 deletions

View File

@@ -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];