@@ -696,8 +696,8 @@ namespace fs
696
696
bool ex = false ;
697
697
std::string path = this ->MakeFull (Path);
698
698
u32 type = 0 ;
699
- u32 tmpfsz = 0 ;
700
- usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out32 (tmpfsz));
699
+ u64 tmpfsz = 0 ;
700
+ usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out64 (tmpfsz));
701
701
ex = ((type == 1 ) || (type == 2 ));
702
702
return ex;
703
703
}
@@ -707,8 +707,8 @@ namespace fs
707
707
bool ex = false ;
708
708
std::string path = this ->MakeFull (Path);
709
709
u32 type = 0 ;
710
- u32 tmpfsz = 0 ;
711
- usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out32 (tmpfsz));
710
+ u64 tmpfsz = 0 ;
711
+ usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out64 (tmpfsz));
712
712
ex = (type == 1 );
713
713
return ex;
714
714
}
@@ -718,8 +718,8 @@ namespace fs
718
718
bool ex = false ;
719
719
std::string path = this ->MakeFull (Path);
720
720
u32 type = 0 ;
721
- u32 tmpfsz = 0 ;
722
- usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out32 (tmpfsz));
721
+ u64 tmpfsz = 0 ;
722
+ usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (type), usb::Out64 (tmpfsz));
723
723
ex = (type == 2 );
724
724
return ex;
725
725
}
@@ -762,26 +762,26 @@ namespace fs
762
762
763
763
u64 USBPCDriveExplorer::ReadFileBlock (std::string Path, u64 Offset, u64 Size , u8 *Out)
764
764
{
765
- u32 rsize = 0 ;
765
+ u64 rsize = 0 ;
766
766
std::string path = this ->MakeFull (Path);
767
- usb::ProcessCommand<usb::CommandId::ReadFile>(usb::InString (path), usb::In32 ((u32) Offset), usb::In32 ((u32) Size ), usb::Out32 (rsize), usb::OutBuffer (Out, Size ));
768
- return (u64) rsize;
767
+ usb::ProcessCommand<usb::CommandId::ReadFile>(usb::InString (path), usb::In64 ( Offset), usb::In64 ( Size ), usb::Out64 (rsize), usb::OutBuffer (Out, Size ));
768
+ return rsize;
769
769
}
770
770
771
771
u64 USBPCDriveExplorer::WriteFileBlock (std::string Path, u8 *Data, u64 Size )
772
772
{
773
773
std::string path = this ->MakeFull (Path);
774
- usb::ProcessCommand<usb::CommandId::WriteFile>(usb::InString (path), usb::In32 ((u32) Size ), usb::InBuffer (Data, Size ));
774
+ usb::ProcessCommand<usb::CommandId::WriteFile>(usb::InString (path), usb::In64 ( Size ), usb::InBuffer (Data, Size ));
775
775
return Size ;
776
776
}
777
777
778
778
u64 USBPCDriveExplorer::GetFileSize (std::string Path)
779
779
{
780
- u32 sz = 0 ;
780
+ u64 sz = 0 ;
781
781
std::string path = this ->MakeFull (Path);
782
782
u32 tmptype = 0 ;
783
- usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (tmptype), usb::Out32 (sz));
784
- return (u64) sz;
783
+ usb::ProcessCommand<usb::CommandId::StatPath>(usb::InString (path), usb::Out32 (tmptype), usb::Out64 (sz));
784
+ return sz;
785
785
}
786
786
787
787
u64 USBPCDriveExplorer::GetTotalSpace ()
0 commit comments