mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 21:25:56 +08:00
Properly handle "dev" version
This commit is contained in:
parent
e76ca8febf
commit
afabd955ac
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user