This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If you have a brain, passing the tests at the end is no issue, however **you are responsible** to know the things you should. | |
| (function() { | |
| // Set video speed whenever a new video loads | |
| function setVideoSpeed() { | |
| const videoPlayer = videojs.getPlayer('gcn-video-player'); | |
| if (videoPlayer) { | |
| videoPlayer.off('ratechange'); | |
| videoPlayer.playbackRate(1.5); | |
| videoPlayer.playbackRate = function(rate) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $sdRoot = Read-Host -Prompt "Enter flashcart microsd drive letter (e.g., E:)" | |
| $workDir = Get-Location | |
| $cfRoot = Join-Path "$workDir" -ChildPath "RetroGameFan Multi Cart Update v7.06" | |
| Write-Host $cfRoot | |
| $r4iRoot = Join-Path "$cfRoot" -ChildPath "R4i-SDHC YSMenu" | |
| $skinsRoot = Join-Path "$cfRoot" -ChildPath "YSMenu Skins" | |
| $ttMenu = Join-Path "$r4iroot" -ChildPath "TTMenu" | |
| $r4iDat = Join-Path "$r4iroot" -ChildPath "R4.dat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName System.Windows.Forms | |
| Add-Type -AssemblyName Microsoft.VisualBasic | |
| function CopyFile { | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$Source, | |
| [Parameter(Mandatory=$true)] | |
| [string]$Dest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Stop being lazy | |
| function DownloadAndBuild() { | |
| $zip_dl = "https://github.com/MeteorDevelopment/meteor-client/archive/refs/heads/master.zip" | |
| $zip_out = Join-Path $PWD "meteor_src.zip" | |
| $unzip_out = Join-Path $PWD "meteor_source" | |
| try { | |
| Write-Host -ForegroundColor Blue "Downloading meteor source from Github..." | |
| Invoke-RestMethod -Uri $zip_dl -OutFile $zip_out | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $root = Join-Path $PWD "\meteor_archive" | |
| $119 = Join-Path $root "\1.19.X" | |
| $118 = Join-Path $root "\1.18.X" | |
| $117 = Join-Path $root "\1.17.X" | |
| mkdir -Path $root *> $null | |
| mkdir -Path $119 *> $null | |
| mkdir -Path $118 *> $null | |
| mkdir -Path $117 *> $null | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $root = Get-Location | |
| $gradle_build = Get-ChildItem $root\build.gradle | |
| $gradle_props = Get-ChildItem $root\gradle.properties | |
| $gradle_wrapper = Get-ChildItem $root\gradlew.bat | |
| $addon_url = "https://github.com/MeteorDevelopment/meteor-addon-template/archive/refs/heads/main.zip" | |
| $project_mode = $true | |
| if (-not $gradle_build.Exists -or -not $gradle_props.Exists -or -not $gradle_wrapper.Exists) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $gh_token = "" | |
| $gh_header = @{'authorization' = {$gh_token}} | |
| $global:progressPreference = 'silentlyContinue' | |
| $has_modf = $true | |
| if ($gh_token) { | |
| } else { | |
| Write-Host -ForegroundColor Red "Github token missing!" | |
| Write-Host -ForegroundColor Yellow "Create a key at https://github.com/settings/tokens" | |
| Write-Host -ForegroundColor Yellow "then paste the key into the first line of this script (gh_token)" |