mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-12-11 19:09:51 +00:00
7e0617e377
* Initial * Begin to use font glyphs, small refactor * Colored icons in 5 slots * Dedupe, some color changes * Add 10 input log spaces * Add lots, but glitchy fade out needs fixing * Frame Counter fixes * Remove testing bflyt * Use just text for now * Add support for raw inputs, menu option * Fix stick thresholding for the most part? * Small change * Add statuses! * Some fixes * Fix softlock thing, in general fix frame-by-frame + TTL weirdness * Mid-refactor * Use i8 for thresholds; update layout.arc to master's * Merge fixes * More fixes * Formatting * Last fixes for clippy / formatting * Input Display Status Breakdown * More formatting * More fixes * Fix again * Replaced input log bflyt, added input icon bflyt * Fixed sizes of all top level frames * Added Icon part pane * Got icons imported to bflyt * Added icon parts to Icons Pane * Raised size of layout * Commented out handling of icons as text * Added most icons, updated icons to match names * Added plus and minus * Added analog stick panes to layout * Got icons working in game * Fix for lua consts; update print_fighter_info to use consts with names * Update for consts * Fix again * into_iter * from_iter * import trait * Try setting colors * Fixes * deref * Clippy * Try white color * Use same upstream skyline-smash * Try black color with alpha of 0 * Use white for lstick * Added input display menu icon, removed breakdown from input status display * Fix formatting + clippy * Fixed layout, updated icon colours --------- Co-authored-by: Matthew Edell <edell.matthew@gmail.com>
57 lines
No EOL
2.2 KiB
PowerShell
Vendored
57 lines
No EOL
2.2 KiB
PowerShell
Vendored
# Change these to match your local
|
|
# The first time you run this, in order to set up the symlinks, you may have to be an administrator
|
|
# to write the files. Powershell is dumb.
|
|
$RYUJINX_LAYOUT_ARC_PATH="C:\Users\Josh\AppData\Roaming\Ryujinx\sdcard\ultimate\TrainingModpack\layout.arc"
|
|
$LOCAL_LAYOUT_ARC_PATH="C:\Users\Josh\Documents\Games\UltimateTrainingModpack\src\static\layout.arc"
|
|
|
|
$RYUJINX_PLUGIN_PATH="C:\Users\Josh\AppData\Roaming\Ryujinx\mods\contents\01006a800016e000\romfs\skyline\plugins\libtraining_modpack.nro"
|
|
$LOCAL_PLUGIN_PATH="C:\Users\Josh\Documents\Games\UltimateTrainingModpack\target\aarch64-skyline-switch\release\libtraining_modpack.nro"
|
|
|
|
$RYUJINX_EXE_PATH="C:\Users\Josh\Documents\Games\Ryujinx\ryujinx-1.1.999-win_x64\publish\Ryujinx.exe"
|
|
$SMASH_NSP_PATH='C:\Users\Josh\Documents\Games\ROMs\Super Smash Bros Ultimate [Base Game]\Super Smash Bros Ultimate[01006A800016E000][US][v0].nsp'
|
|
|
|
|
|
$IP=(Test-Connection -ComputerName (hostname) -Count 1 | Select -ExpandProperty IPV4Address).IPAddressToString
|
|
|
|
# Set symbols flag
|
|
$env:RUSTFLAGS="-g"
|
|
cargo skyline build --release --features layout_arc_from_file
|
|
if (($lastexitcode -ne 0)) {
|
|
exit $lastexitcode
|
|
}
|
|
|
|
# Set up symlinks
|
|
if(-not(Test-path $RYUJINX_LAYOUT_ARC_PATH -PathType leaf))
|
|
{
|
|
New-Item -ItemType SymbolicLink -Path $RYUJINX_LAYOUT_ARC_PATH -Target $LOCAL_LAYOUT_ARC_PATH
|
|
if (($lastexitcode -ne 0)) {
|
|
exit $lastexitcode
|
|
}
|
|
}
|
|
|
|
if(-not(Test-path $RYUJINX_PLUGIN_PATH -PathType leaf))
|
|
{
|
|
New-Item -ItemType SymbolicLink -Path $RYUJINX_PLUGIN_PATH -Target $LOCAL_PLUGIN_PATH
|
|
if (($lastexitcode -ne 0)) {
|
|
exit $lastexitcode
|
|
}
|
|
}
|
|
|
|
try {
|
|
# Start the process asynchronously
|
|
$process = Start-Process -FilePath $RYUJINX_EXE_PATH -ArgumentList `"$SMASH_NSP_PATH`" -PassThru
|
|
|
|
# Store the process ID
|
|
$global:process = $process.Id
|
|
|
|
echo "Starting cargo skyline listen..."
|
|
cargo skyline listen --ip=$IP
|
|
# Makes no sense, but we need this line for logs to show up. Lol
|
|
echo "Finishing cargo skyline listen..."
|
|
}
|
|
finally {
|
|
# Interrupts to the script should kill Ryujinx as well
|
|
if ($global:process -ne $null) {
|
|
Stop-Process -Id $global:process -Force
|
|
}
|
|
} |