AtlasTheProto / ADBForwarder

Console application designed to handle ADB commands necessary to enable wired streaming with ALVR
MIT License
21 stars 11 forks source link

adb.zip not found #1

Closed cafelake closed 3 years ago

cafelake commented 3 years ago

Thanks for creating this! I ran into the following issue. Could it be that this line needs to use Path.GetTempPath() like the other lines?

C:\Users\me\Desktop>ADBForwarder
ADB not found, downloading in the background...
Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\Users\me\Desktop\adb.zip'.
File name: 'C:\Users\me\Desktop\adb.zip'
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
   at Ionic.Zip.ZipFile.get_ReadStream()
   at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
   at Ionic.Zip.ZipFile.Read(String fileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)
   at Ionic.Zip.ZipFile.Read(String fileName)
   at ADBForwarder.Program.DownloadADB()
   at ADBForwarder.Program.Main(String[] args)
AtlasTheProto commented 3 years ago

Total code refactor pushed, please try the new release and see if the issue persists.