diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/fs/fs.cpp | 6 | ||||
| -rw-r--r-- | src/common/settings.h | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/common/fs/fs.cpp b/src/common/fs/fs.cpp index 1baf6d746..36e67c145 100644 --- a/src/common/fs/fs.cpp +++ b/src/common/fs/fs.cpp | |||
| @@ -605,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) { | |||
| 605 | } | 605 | } |
| 606 | 606 | ||
| 607 | u64 GetSize(const fs::path& path) { | 607 | u64 GetSize(const fs::path& path) { |
| 608 | #ifdef ANDROID | ||
| 609 | if (Android::IsContentUri(path)) { | ||
| 610 | return Android::GetSize(path); | ||
| 611 | } | ||
| 612 | #endif | ||
| 613 | |||
| 608 | std::error_code ec; | 614 | std::error_code ec; |
| 609 | 615 | ||
| 610 | const auto file_size = fs::file_size(path, ec); | 616 | const auto file_size = fs::file_size(path, ec); |
diff --git a/src/common/settings.h b/src/common/settings.h index 3aedf3850..ae5ed93d8 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -525,9 +525,16 @@ struct Values { | |||
| 525 | Setting<bool> tas_loop{false, "tas_loop"}; | 525 | Setting<bool> tas_loop{false, "tas_loop"}; |
| 526 | 526 | ||
| 527 | Setting<bool> mouse_panning{false, "mouse_panning"}; | 527 | Setting<bool> mouse_panning{false, "mouse_panning"}; |
| 528 | Setting<u8, true> mouse_panning_sensitivity{50, 1, 100, "mouse_panning_sensitivity"}; | 528 | Setting<u8, true> mouse_panning_x_sensitivity{50, 1, 100, "mouse_panning_x_sensitivity"}; |
| 529 | Setting<bool> mouse_enabled{false, "mouse_enabled"}; | 529 | Setting<u8, true> mouse_panning_y_sensitivity{50, 1, 100, "mouse_panning_y_sensitivity"}; |
| 530 | Setting<u8, true> mouse_panning_deadzone_x_counterweight{ | ||
| 531 | 0, 0, 100, "mouse_panning_deadzone_x_counterweight"}; | ||
| 532 | Setting<u8, true> mouse_panning_deadzone_y_counterweight{ | ||
| 533 | 0, 0, 100, "mouse_panning_deadzone_y_counterweight"}; | ||
| 534 | Setting<u8, true> mouse_panning_decay_strength{22, 0, 100, "mouse_panning_decay_strength"}; | ||
| 535 | Setting<u8, true> mouse_panning_min_decay{5, 0, 100, "mouse_panning_min_decay"}; | ||
| 530 | 536 | ||
| 537 | Setting<bool> mouse_enabled{false, "mouse_enabled"}; | ||
| 531 | Setting<bool> emulate_analog_keyboard{false, "emulate_analog_keyboard"}; | 538 | Setting<bool> emulate_analog_keyboard{false, "emulate_analog_keyboard"}; |
| 532 | Setting<bool> keyboard_enabled{false, "keyboard_enabled"}; | 539 | Setting<bool> keyboard_enabled{false, "keyboard_enabled"}; |
| 533 | 540 | ||