forked from NS-Kazuki/iBMSC
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
16,270 additions
and
16,259 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> | ||
<NoWarn>$(NoWarn);NU1507</NoWarn> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="CSCore" Version="1.2.1.2" /> | ||
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0-preview.3.24172.9" /> | ||
<PackageVersion Include="NVorbis" Version="0.10.5" /> | ||
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" /> | ||
<PackageVersion Include="System.Text.Encodings.Web" Version="9.0.0-preview.3.24172.9" /> | ||
<PackageVersion Include="System.Text.Json" Version="9.0.0-preview.3.24172.9" /> | ||
</ItemGroup> | ||
</Project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
Namespace My | ||
|
||
Partial Friend Class MyApplication | ||
|
||
Private Sub MyApplication_Shutdown(sender As Object, e As EventArgs) Handles Me.Shutdown | ||
|
||
End Sub | ||
|
||
Private Sub MyApplication_Startup(sender As Object, e As ApplicationServices.StartupEventArgs) Handles Me.Startup | ||
|
||
End Sub | ||
|
||
Private Sub MyApplication_UnhandledException(sender As Object, e As ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException | ||
Dim xRes As MsgBoxResult = MsgBox("An unhandled exception has occurred in the application: " & vbCrLf & | ||
e.Exception.Message & vbCrLf & | ||
vbCrLf & | ||
"Click Yes to save a back-up, click No otherwise, or click Cancel to ignore this exception and continue.", | ||
MsgBoxStyle.YesNoCancel + MsgBoxStyle.Critical, | ||
"Unhandled Exception") | ||
If xRes = MsgBoxResult.Cancel Then e.ExitApplication = False | ||
If xRes = MsgBoxResult.Yes Then | ||
Dim xFN As String | ||
Dim xDate As Date = Date.Now | ||
With xDate | ||
xFN = "\AutoSave_" & .Year & "_" & .Month & "_" & .Day & "_" & .Hour & "_" & .Minute & "_" & .Second & "_" & .Millisecond & ".IBMSC" | ||
End With | ||
|
||
'My.Computer.FileSystem.WriteAllText(My.Application.Info.DirectoryPath & xFN, Form1.ExceptionSave, False) | ||
MainWindow.ExceptionSave(Application.Info.DirectoryPath & xFN) | ||
Dim unused = MsgBox("A back-up has been saved to " & Application.Info.DirectoryPath & xFN, MsgBoxStyle.Information) | ||
End If | ||
End Sub | ||
End Class | ||
Partial Friend Class MyApplication | ||
|
||
Private Sub MyApplication_Shutdown(sender As Object, e As EventArgs) Handles Me.Shutdown | ||
|
||
End Sub | ||
|
||
Private Sub MyApplication_Startup(sender As Object, e As ApplicationServices.StartupEventArgs) Handles Me.Startup | ||
|
||
End Sub | ||
|
||
Private Sub MyApplication_UnhandledException(sender As Object, e As ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException | ||
Dim xRes As MsgBoxResult = MsgBox("An unhandled exception has occurred in the application: " & vbCrLf & | ||
e.Exception.Message & vbCrLf & | ||
vbCrLf & | ||
"Click Yes to save a back-up, click No otherwise, or click Cancel to ignore this exception and continue.", | ||
MsgBoxStyle.YesNoCancel + MsgBoxStyle.Critical, | ||
"Unhandled Exception") | ||
If xRes = MsgBoxResult.Cancel Then e.ExitApplication = False | ||
If xRes = MsgBoxResult.Yes Then | ||
Dim xFN As String | ||
Dim xDate As Date = Date.Now | ||
With xDate | ||
xFN = "\AutoSave_" & .Year & "_" & .Month & "_" & .Day & "_" & .Hour & "_" & .Minute & "_" & .Second & "_" & .Millisecond & ".IBMSC" | ||
End With | ||
|
||
'My.Computer.FileSystem.WriteAllText(My.Application.Info.DirectoryPath & xFN, Form1.ExceptionSave, False) | ||
MainWindow.ExceptionSave(Application.Info.DirectoryPath & xFN) | ||
Dim unused = MsgBox("A back-up has been saved to " & Application.Info.DirectoryPath & xFN, MsgBoxStyle.Information) | ||
End If | ||
End Sub | ||
End Class | ||
|
||
End Namespace | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
Imports iBMSC.Editor | ||
|
||
Friend Module BMS | ||
Public Function IsChannelLongNote(I As String) As Boolean | ||
Dim LongStart = C36to10("50") | ||
Dim LongEnd = C36to10("8Z") | ||
Public Function IsChannelLongNote(I As String) As Boolean | ||
Dim LongStart = C36to10("50") | ||
Dim LongEnd = C36to10("8Z") | ||
|
||
Dim xI As Integer = C36to10(I) | ||
Dim xI As Integer = C36to10(I) | ||
|
||
Return xI > LongStart And xI < LongEnd | ||
End Function | ||
Return xI > LongStart And xI < LongEnd | ||
End Function | ||
|
||
Public Function IsChannelHidden(I As String) As Boolean | ||
Dim HiddenStart = C36to10("30") | ||
Dim HiddenEnd = C36to10("4Z") | ||
Dim OptionStart = C36to10("70") | ||
Dim OptionEnd = C36to10("8Z") | ||
Public Function IsChannelHidden(I As String) As Boolean | ||
Dim HiddenStart = C36to10("30") | ||
Dim HiddenEnd = C36to10("4Z") | ||
Dim OptionStart = C36to10("70") | ||
Dim OptionEnd = C36to10("8Z") | ||
|
||
Dim xI As Integer = C36to10(I) | ||
Dim xI As Integer = C36to10(I) | ||
|
||
Return (xI > HiddenStart And xI < HiddenEnd) Or (xI > OptionStart And xI < OptionEnd) | ||
End Function | ||
Return (xI > HiddenStart And xI < HiddenEnd) Or (xI > OptionStart And xI < OptionEnd) | ||
End Function | ||
|
||
Public Function IsChannelLandmine(I As String) As Boolean | ||
Dim LandmineStart = C36to10("D0") | ||
Dim LandmineEnd = C36to10("EZ") | ||
Public Function IsChannelLandmine(I As String) As Boolean | ||
Dim LandmineStart = C36to10("D0") | ||
Dim LandmineEnd = C36to10("EZ") | ||
|
||
Dim xI As Integer = C36to10(I) | ||
Dim xI As Integer = C36to10(I) | ||
|
||
Return xI > LandmineStart And xI < LandmineEnd | ||
End Function | ||
Return xI > LandmineStart And xI < LandmineEnd | ||
End Function | ||
End Module |
Oops, something went wrong.