Windows: look for config files in $LOCALAPPDATA

This commit is contained in:
李通洲
2023-01-02 11:49:41 +08:00
parent 8533dc234b
commit 822496808d
6 changed files with 39 additions and 2 deletions
+6
View File
@@ -328,6 +328,12 @@ uint32_t ffStrbufPreviousIndexC(const FFstrbuf* strbuf, uint32_t start, char c)
return strbuf->length;
}
void ffStrbufReplaceAllC(FFstrbuf* strbuf, char find, char replace)
{
for (char *current_pos = strchr(strbuf->chars, find); current_pos; current_pos = strchr(current_pos + 1, find))
*current_pos = replace;
}
void ffStrbufSubstrBefore(FFstrbuf* strbuf, uint32_t index)
{
if(strbuf->length <= index)