The input string was not in a correct format
DebugDax opened this issue · 5 comments
Describe the bug
Opening the program the first time did not throw any error, once I chose my Yuzu directory, this error popped up immediately and now also appears every time I open EzYuzu. I currently have Yuzu 3599 from PineappleEA.
To Reproduce
Steps to reproduce the behavior:
- Select Directory with Yuzu.exe
- Clicking Continue just makes EzYuzu expect you to still pick a Yuzu directory
************** Exception Text **************
System.FormatException: The input string '18.3.7' was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan`1 value, TypeCode type)
at System.Int32.Parse(String s)
at EzYuzu.Classes.Yuzu.Detectors.YuzuInstallationStateDetector.GetYuzuInstallationStateAsync(Int32 latestVersionAvailable)
at EzYuzu.FrmMain.RefreshDetectedYuzuInstallationStateAsync(YuzuBranch detectedYuzuBranch)
at EzYuzu.FrmMain.FrmMain_LoadAsync(Object sender, EventArgs e)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at InvokeStub_SendOrPostCallback.Invoke(Object, Object, IntPtr*)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Desktop (please complete the following information):
- OS: Windows 11
- Version 22H2
Hello,
Thanks for opening the issue. It looks like the version
file is malformed, try this:
- Close EzYuzu
- In File Explorer, browse to
C:\Users\Micro\Desktop\yuzuea
- Locate the file called
version
& delete it - Relaunch EzYuzu & update
Let me know how this goes
Also in addition to this, try the build below and see if the issue is rectified. I've added some error handling if the version
file is malformed
Hello,
I made a copy of the folder and deleted the version file. Using the existing EzYuzu, it doesn't do any version check but launch's the existing version of Yuzu.
Using your 33_TestBuild, It just auto-downloads the most recent version and launch's that new Yuzu. Works perfect!
Thank you.
Thanks for letting me know! I shall push the changes soon
I will keep this open until the changes have been pushed
Closed - Fixed in v1.6.2.0
https://github.com/amakvana/EzYuzu/releases/latest