Skip to content

Commit

Permalink
also at the requset of Lily
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie-coder committed Sep 21, 2024
1 parent 3e79456 commit 9a94921
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions source/UpdateState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,26 +156,27 @@ class UpdateState extends MusicBeatState
}
}

inline function getPlatform():String
{
#if windows
return 'windows';
#elseif mac
return 'macOS';
#elseif linux
return 'linux';
#elseif android
return 'android';
/*
#elseif ios
return 'iOS';
*/
#else
return '';
#end
}

inline function getUpdateLink()
{
function getPlatform():String
{
#if windows
return 'windows';
#elseif mac
return 'macOS';
#elseif linux
return 'linux';
#elseif android
return 'android';
/*
#elseif ios
return 'iOS';
*/
#else
return '';
#end
}
var fileEnd = #if android 'apk' #else 'zip' #end;
online_url = "https://github.com/JordanSantiagoYT/FNF-JS-Engine/releases/download/" + TitleState.updateVersion + '/FNF-JS-Engine-${getPlatform}.$fileEnd';
trace("update url: " + online_url);
Expand Down

0 comments on commit 9a94921

Please sign in to comment.