1
0
Fork 0
forked from suyu/suyu
suyu/src
Lioncash 2b2dc00bfd qt/main: Better file-existence checking within OnMenuRecentFile() and UpdateUITheme()
In OnMenuRecentFile() we don't need to construct a QFileInfo instance
just to check if a file exists, we can just use the static member
function to do that (which Qt's documentation also notes as quicker than
constructing an instance).

In UpdateUITheme(), we just want to try and open the file and check the
success of that operation. Technically speaking, between the existence
check and the open call, the file can be deleted or moved, but still
appear to succeed in code. i.e.

1. Existence check -> Returns true
2. File is moved/deleted
3. Open is called, the return value of which isn't checked
4. Nonsense behavior

This way we combine the existence check and the open into one.
2018-08-06 14:17:13 -04:00
..
audio_core audio_core: Implement audren_u audio playback. 2018-08-04 21:54:30 -04:00
common service: Add arp services 2018-08-04 18:01:12 -04:00
core Merge pull request #933 from lioncash/memory 2018-08-06 12:34:57 -04:00
input_common input_common: Use std::move where applicable 2018-08-02 21:51:11 -04:00
tests core/memory: Get rid of 3DS leftovers 2018-08-03 11:22:47 -04:00
video_core Merge pull request #927 from bunnei/fix-texs 2018-08-05 16:42:21 -04:00
yuzu qt/main: Better file-existence checking within OnMenuRecentFile() and UpdateUITheme() 2018-08-06 14:17:13 -04:00
yuzu_cmd Merge pull request #912 from lioncash/global-var 2018-08-05 16:37:39 -04:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt audio_core: Add initial code for keeping track of audout state. 2018-07-27 22:33:31 -04:00