mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Fix player palette export crash
This commit is contained in:
parent
b27555d614
commit
5ac1d0c65d
1 changed files with 4 additions and 0 deletions
|
@ -133,7 +133,11 @@ static bool djui_panel_player_edit_palette_preset_name_valid(char* buffer) {
|
|||
if (buffer[0] == '\0') { return false; }
|
||||
char* c = buffer;
|
||||
while (*c != '\0') {
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
if (*c == '/' || *c == '\\' || *c == ':' || *c == '<' || *c == '>' || *c == '"' || *c == '|' || *c == '?' || *c == '*') { return false; }
|
||||
#else
|
||||
if (*c == '/' || *c == '\\') { return false; }
|
||||
#endif
|
||||
if (!djui_unicode_valid_char(c)) { return false; }
|
||||
c = djui_unicode_next_char(c);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue