mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 12:41:18 -07:00
Properly handle "dev" version
This commit is contained in:
parent
e76ca8febf
commit
afabd955ac
1 changed files with 8 additions and 0 deletions
|
@ -223,6 +223,14 @@ compare_prerelease (char *x, char *y) {
|
||||||
if (y == NULL && x) return -1;
|
if (y == NULL && x) return -1;
|
||||||
if (x == NULL && y) 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;
|
lastx = x;
|
||||||
lasty = y;
|
lasty = y;
|
||||||
xlen = strlen(x);
|
xlen = strlen(x);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue