Scott Mansell
08fcc7bf84
IPC_HLE: Cleanup device definitions with templates.
...
Less copy/pasted code will make future modifications easier.
2015-07-05 02:05:39 +12:00
Scott Mansell
1d5cda9820
IPC_HLE: Reimplement fix for issues 2917/5232 with more sanity.
...
Instead of opening... and... closing... files... after... every...
file... operation... (which can be slow, especially if a virus scanner
is running), we catch attempts to open the same file twice and
only open one copy of the file.
2015-07-05 02:01:45 +12:00
Scott Mansell
8b4734133e
IPC_HLE: Don't open/close file for every single file operation.
...
On the first boot of Pokemon Snap it copies a 144KB file to the Wii's
NAND, but it only copies 32 bytes per IPC write call.
This was causing dolphin to open and close the same file over 4000
times. This wouldn't usually be a huge issue, except some operating
systems (namely Windows) allow 3rd party programs (namely antivirus
software) to hook all accesses to the filesystem.
This causes the antivirus software to scan the same file for viruses
4000+ times, which is kind of slow.
This fix reduces the initial boot time of pokemon snap from 3+ min
to just a few seconds. Could also improve other games which write
things to NAND.
Will break a few things, see the next commit for an improved fix.
2015-06-24 19:23:10 +12:00
Scott Mansell
03124ec3f0
IPC_HLE: Simplify lifecycle of devices with shared pointers.
...
This also fixes a memory/filehandle leak when loading savestates.
2015-06-24 19:22:04 +12:00
comex
6d2631a173
Merge pull request #2639 from rukai/master
...
Translations fix for Linux & Mac OS X
2015-06-21 17:10:07 -04:00
Ryan Houdek
3f0f3c36fa
Merge pull request #2627 from sigmabeta/android-non-games
...
Android: Have non-games use their filename as a Game ID.
2015-06-21 15:06:49 -05:00
comex
f6d27a5ce8
Merge pull request #2641 from comex/trivial-fixes
...
Trivial fixes
2015-06-21 15:51:25 -04:00
comex
700b850acd
Fix misc. clang warnings - mostly complaints about inconsistent use of override.
...
Previously, MacOpenFile only overrode anything on OS X; otherwise it was
just a useless method, which is presumably why it wasn't marked override
in the first place. Address this more sanely by wrapping it in #ifdef
__APPLE__.
2015-06-21 15:42:49 -04:00
rukai
c9e8179c5a
Added namespace to GetBundleDirectory to compile on Mac OSX
2015-06-21 20:41:41 +10:00
rukai
bbde9cbeae
Swapped out spaces for tabs
2015-06-21 20:41:41 +10:00
rukai
cc22151495
Fixes translation on Linux and potentially Mac OSX, by specifying location of *.gmo files
2015-06-21 20:41:41 +10:00
Ryan Houdek
a811370329
[AArch64] Fix a couple of bugs in the vertex loader
...
In particular this fixes the 6666 colour format
We were loading from the wrong location and it was causing /terrible/ colour changes.
This also fixes a bug in the all the colour formats(except 888) where the unaligned path was loading in to the wrong register.
2015-06-20 21:12:31 -05:00
Lioncash
fa7d93690e
Hash: Remove the HashFNV prototype
...
It has no function definition.
2015-06-20 21:23:25 -04:00
flacs
a702c4e01e
Merge pull request #2629 from lioncash/vertexloader-ifdef
...
VertexLoader: Remove the LOADERDECL define.
2015-06-21 03:17:38 +02:00
Lioncash
619e333dcc
VertexLoader: Remove the LOADERDECL define.
...
These functions aren't called from jitted code anymore so it isn't necessary.
2015-06-20 20:52:54 -04:00
Markus Wick
1003d08d81
Merge pull request #2632 from lioncash/var
...
RenderBase: Remove an unused variable
2015-06-20 09:28:27 +02:00
skidau
c18662432f
Merge pull request #2622 from AdmiralCurtiss/homebrew-video-modes
...
Fix Homebrew region inconsistency exposed by #2596 .
2015-06-20 11:49:57 +10:00
Lioncash
cfead69f67
RenderBase: Remove an unused variable
2015-06-19 20:30:29 -04:00
flacs
9b9bab2179
Merge pull request #2631 from lioncash/regcache
...
JitRegCache: Get rid of an unnecessary cast
2015-06-20 00:16:03 +02:00
Lioncash
6ca6896b6e
JitRegCache: Get rid of an unnecessary cast
2015-06-19 18:10:56 -04:00
Lioncash
4c79aa8216
HiresTextures: Remove unused variable
2015-06-19 17:31:04 -04:00
rukai
f91a228697
OpenGL exclusive fullscreen OSD notification is made consistent with the one used for D3D.
2015-06-20 00:18:13 +10:00
sigmabeta
2bdf6537c8
Android: Have non-games use their filename as a Game ID.
2015-06-19 09:15:31 -04:00
Admiral H. Curtiss
7276d80adc
Boot: Decide setting.txt's country settings based on the game's video mode when no valid country code is found rather than defaulting to Europe.
2015-06-19 15:09:21 +02:00
Admiral H. Curtiss
1b8b99e9f1
ConfigManager: Set homebrew video mode based on Dolphin's PAL60 config instead of always using 50Hz.
...
This is a bit indirect, but since homebrew always boots in a European environment the framerate depends on the bPAL60 flag, which is always auto turned off if bNTSC is set to true as of 2e5e724f94
. By actually indicating that we're PAL on homebrew boot, the rest just falls into place.
2015-06-19 15:07:19 +02:00
Lioncash
458378528b
DolphinWX: Remove the Toggle IR hotkey.
...
This isn't necessary since Increase IR and Decrease IR are present.
2015-06-19 05:10:40 -04:00
degasus
dd2183dbb5
Revert "GeometryShaderGen: Don't use `centroid in` for input variables."
...
This reverts commit 4cbaddb7ad
.
2015-06-18 20:25:32 +02:00
Markus Wick
156fb82117
Merge pull request #2620 from JosJuice/more-decodestring
...
Volume: Use DecodeString more
2015-06-18 14:57:10 +02:00
JosJuice
a825c7ddfe
Volume: Use DecodeString more
...
DecodeString handles the case where there is no trailing null byte,
so using it lets the code be a bit simpler.
2015-06-18 14:45:26 +02:00
skidau
3df28a4ea0
Merge pull request #2598 from JosJuice/cache-games-without-banners
...
Cache games without banners
2015-06-18 09:56:03 +10:00
sigmabeta
0c993ad4a9
Android: Fix a bug making Input Overlay config screen only work in release OR debug builds, but not in both.
2015-06-16 15:42:11 -04:00
sigmabeta
82dea170cf
Android: Don't delete the Input Overlay configuration screen.
2015-06-16 10:12:51 -04:00
Ryan Houdek
22e7024da5
Merge pull request #2614 from endrift/fix-gdbstub-build
...
PowerPC: Fix GDBStub build
2015-06-16 02:15:21 -05:00
Jeffrey Pfau
46cf44bcec
PowerPC: Fix GDBStub build
2015-06-16 00:10:28 -07:00
skidau
c6f72115e9
Merge pull request #2596 from AdmiralCurtiss/pal60-config-option
...
PAL60 improvements: Allow setting in GameINI, disable for NTSC games, store in Movie files.
2015-06-16 14:44:31 +10:00
Fiora
c68bb0bdec
Merge pull request #2456 from aserna3/master
...
UI improvements to Add AR Code and Add Patch windows.
2015-06-14 18:53:49 -07:00
Ryan Houdek
87b45de634
Merge pull request #2606 from Sonicadvance1/aarch64_optimize_psq_st
...
[AArch64] Optimize paired quantized stores.
2015-06-14 19:03:50 -05:00
Ryan Houdek
73d213142f
Merge pull request #2611 from Sonicadvance1/aarch64_fix_register_cache
...
[AArch64] Fix a few bugs in the FPR cache.
2015-06-14 19:03:40 -05:00
Ryan Houdek
094c6bf5bc
Merge pull request #2601 from Sonicadvance1/android_fix_user_directory
...
[Android] Make sure we are setting the default user directory.
2015-06-14 17:03:55 -05:00
Admiral H. Curtiss
277348cd75
Movie: Add the PAL60 setting to Movie files.
2015-06-14 17:10:34 +02:00
Admiral H. Curtiss
2e5e724f94
Boot: Automatically temporarily disable PAL60 for NTSC Wii games.
...
Fixes issues like https://code.google.com/p/dolphin-emu/issues/detail?id=7714 and https://code.google.com/p/dolphin-emu/issues/detail?id=8036 .
2015-06-14 17:10:12 +02:00
JosJuice
a7d374bcb9
Cache games without banners
...
Games without banners were not cached before, because a banner could
become available at any time, making the cache outdated without it
becoming invalidated. Instead of not caching anything, this change makes
Dolphin check for a banner every time a cache that lacks a banner is read.
This is faster than reading all metadata, because reading a Wii banner
only reads from the game's save file, not the volume and its filesystem.
The cache revision is incremented, because otherwise banners will be
missing if a cache without a banner is created in the new version and
the user switches to an old version and creates a savefile.
2015-06-14 12:23:48 +02:00
JosJuice
8793f7c325
DolphinQt: Store GameFile banner as empty if missing
2015-06-14 12:23:41 +02:00
Ryan Houdek
96058c5de1
[AArch64] Reenable psq_l.
...
The bug was due to issues in the FPR cache.
2015-06-14 04:11:59 -05:00
Ryan Houdek
282282aafc
[AArch64] Fix a few bugs in the FPR cache.
2015-06-14 04:11:26 -05:00
yerejm
fff81fecb1
Reinstate format string.
...
Avoid the consequences in the unlikely event the path includes a %.
2015-06-14 16:49:35 +10:00
Matthew Parlane
6d9711c02c
Merge pull request #2599 from Sonicadvance1/aarch64_clean_cpudetect
...
[AArch64] Clean up our CPUDetect.
2015-06-14 15:19:03 +10:00
Matthew Parlane
b39014eac5
Merge pull request #2590 from endrift/fix-freebsd-build
...
Fix FreeBSD
2015-06-14 15:18:26 +10:00
Matthew Parlane
252c719515
Merge pull request #2600 from Sonicadvance1/Android_remove_dialog
...
[Android] Remove dialog telling individuals that their drivers are terrible.
2015-06-14 15:17:03 +10:00
Matthew Parlane
2d8fdb791e
Merge pull request #2603 from JosJuice/move-getcompany
...
Move GetCompany() to ISOFile.h/GameFile.h
2015-06-14 15:16:20 +10:00