mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-12 10:35:29 -05:00
Add ability to read data from Optimize keys
Some checks are pending
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux32 flags:32 name:Linux GCC 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux64 flags:64 name:Linux GCC x64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm32 flags:arm32 name:Linux GCC ARM 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm64 flags:arm64 name:Linux GCC ARM 64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:macos name:macOS Apple Silicon os:macos-14]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win32 flags:-A Win32 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 Win32 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win64 flags:-A x64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 x64 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:winarm64 flags:-A ARM64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 ARM os:windows-2022]) (push) Waiting to run
CD / Create Pi Mono Setup (push) Blocked by required conditions
CD / Publishing (push) Blocked by required conditions
Some checks are pending
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux32 flags:32 name:Linux GCC 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux64 flags:64 name:Linux GCC x64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm32 flags:arm32 name:Linux GCC ARM 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm64 flags:arm64 name:Linux GCC ARM 64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:macos name:macOS Apple Silicon os:macos-14]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win32 flags:-A Win32 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 Win32 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win64 flags:-A x64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 x64 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:winarm64 flags:-A ARM64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 ARM os:windows-2022]) (push) Waiting to run
CD / Create Pi Mono Setup (push) Blocked by required conditions
CD / Publishing (push) Blocked by required conditions
Prevents connection drops after 4 minutes and 30-ish seconds
This commit is contained in:
@@ -69,6 +69,16 @@ void capture_error_print(bool print_failed, CaptureData* capture_data, std::stri
|
||||
}
|
||||
}
|
||||
|
||||
void capture_warning_print(CaptureData* capture_data, std::string graphical_string, std::string detailed_string) {
|
||||
capture_data->status.graphical_error_text = graphical_string;
|
||||
capture_data->status.detailed_error_text = detailed_string;
|
||||
capture_data->status.new_error_text = true;
|
||||
}
|
||||
|
||||
void capture_warning_print(CaptureData* capture_data, std::string warning_string) {
|
||||
capture_warning_print(capture_data, warning_string, warning_string);
|
||||
}
|
||||
|
||||
bool connect(bool print_failed, CaptureData* capture_data, FrontendData* frontend_data, bool auto_connect_to_first) {
|
||||
capture_data->status.new_error_text = false;
|
||||
if (capture_data->status.connected) {
|
||||
@@ -286,12 +296,28 @@ uint64_t get_video_in_size(CaptureData* capture_data, bool is_3d, InputVideoData
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::string get_name_of_device(CaptureStatus* capture_status, bool use_long) {
|
||||
std::string get_device_id_string(CaptureStatus* capture_status) {
|
||||
if(!capture_status->connected)
|
||||
return "";
|
||||
if(capture_status->device.device_id == 0)
|
||||
return "";
|
||||
|
||||
if(capture_status->device.cc_type == CAPTURE_CONN_CYPRESS_OPTIMIZE)
|
||||
return to_hex_u60(capture_status->device.device_id);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string get_name_of_device(CaptureStatus* capture_status, bool use_long, bool want_real_serial) {
|
||||
if(!capture_status->connected)
|
||||
return "Not connected";
|
||||
std:: string serial_str = " - " + capture_status->device.serial_number;
|
||||
std::string device_id_string = get_device_id_string(capture_status);
|
||||
if(want_real_serial && (device_id_string != ""))
|
||||
serial_str = " - " + device_id_string;
|
||||
if(!use_long)
|
||||
return capture_status->device.name + " - " + capture_status->device.serial_number;
|
||||
return capture_status->device.long_name + " - " + capture_status->device.serial_number;
|
||||
return capture_status->device.name + serial_str;
|
||||
return capture_status->device.long_name + serial_str;
|
||||
}
|
||||
|
||||
int get_usb_speed_of_device(CaptureStatus* capture_status) {
|
||||
|
||||
Reference in New Issue
Block a user