mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
Properly handle "dev" version
This commit is contained in:
@@ -223,6 +223,14 @@ compare_prerelease (char *x, char *y) {
|
||||
if (y == NULL && x) return -1;
|
||||
if (x == NULL && y) return 1;
|
||||
|
||||
// Orca: Special handling for 'dev'
|
||||
if (strcmp(x, "dev") == 0 && strcmp(y, "dev") == 0)
|
||||
return 0;
|
||||
if (strcmp(x, "dev") == 0 && strcmp(y, "dev") != 0)
|
||||
return -1;
|
||||
if (strcmp(x, "dev") != 0 && strcmp(y, "dev") == 0)
|
||||
return 1;
|
||||
|
||||
lastx = x;
|
||||
lasty = y;
|
||||
xlen = strlen(x);
|
||||
|
||||
Reference in New Issue
Block a user