fix(iidxhook-util/settings): Bugfix broken paths with mixed / and \
Applies to iidx18 and iidx19 when using the recently extended redirect feature for settings paths, mixing / and \ crashes the game in some operator sub-menus when trying to save settings.
This commit is contained in:
@@ -194,6 +194,17 @@ wchar_t *str_widen(const char *src)
|
||||
return result;
|
||||
}
|
||||
|
||||
void str_replace(char *str, char cur, char new)
|
||||
{
|
||||
while (*str != '\0') {
|
||||
if (*str == cur) {
|
||||
*str = new;
|
||||
}
|
||||
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
||||
wchar_t *wstr_dup(const wchar_t *wstr)
|
||||
{
|
||||
wchar_t *dest;
|
||||
|
||||
Reference in New Issue
Block a user