comex
a0a80c9a9c
Fix CopyDir to not require source and dest paths to end with "/".
2015-05-28 19:14:42 -04:00
comex
a225426510
Rewrite FileSearch and improve ScanDirectoryTree.
...
- FileSearch is now just one function, and it converts the original glob
into a regex on all platforms rather than relying on native Windows
pattern matching on there and a complete hack elsewhere. It now
supports recursion out of the box rather than manually expanding
into a full list of directories in multiple call sites.
- This adds a GCC >= 4.9 dependency due to older versions having
outright broken <regex>. MSVC is fine with it.
- ScanDirectoryTree returns the parent entry rather than filling parts
of it in via reference. The count is now stored in the entry like it
was for subdirectories.
- .glsl file search is now done with DoFileSearch.
- IOCTLV_READ_DIR now uses ScanDirectoryTree directly and sorts the
results after replacements for better determinism.
2015-05-28 19:14:42 -04:00
degasus
9a96e3c416
AudioCommon: Remove lock on Pause state
...
We had to lock audiocommon with the old asynchron HLE audio emulation,
now our Mixer is just a plain FIFO which may underrun.
Of course, this will stutter, but underruning the audio backend is likely worse.
2015-05-28 19:58:18 +02:00
JosJuice
6fb8ce58d6
Honor logging settings at startup
...
https://code.google.com/p/dolphin-emu/issues/detail?id=7959
2015-05-28 09:28:23 +02:00
Fog
c767813c0c
Fix adding additional Disc 2 to certain multi-disc games
2015-05-27 11:08:57 -04:00
Tillmann Karras
285ac34bf3
OGL: use GL_TEXTURE* constants
2015-05-27 15:05:49 +02:00
JosJuice
f1580a4c91
Fix game list name encoding error caused by 4.0-6419 ( d7900b4
)
...
The UTF-8 std::strings were being interpreted as the default encoding.
2015-05-27 12:28:23 +02:00
Markus Wick
255a8dfdd2
Merge pull request #2465 from lioncash/commandproc
...
CommandProcessor: Replace volatile usages with atomics
2015-05-27 11:07:36 +02:00
Lioncash
1ba3b4e7ac
CommandProcessor: Replace volatile usages with atomics
...
Also remove said variables from being globals.
2015-05-27 03:53:29 -04:00
Markus Wick
3318120632
Merge pull request #2422 from lioncash/core
...
DSPCore: Make the mailbox registers atomic.
2015-05-27 09:14:41 +02:00
Lioncash
ec03196267
PixelEngine: Replace volatile usages with atomics
...
Also removes two unused volatile variables.
2015-05-27 02:39:55 -04:00
Markus Wick
a6b327751a
Merge pull request #2463 from lioncash/fifo
...
Fifo: Replace usages of volatile with atomics
2015-05-27 08:03:39 +02:00
Lioncash
5db7d4d1d5
DSPCore: Make the mailbox registers atomic.
2015-05-27 00:58:52 -04:00
Lioncash
4cb55cc427
Fifo: Replace usages of volatile with atomics
2015-05-27 00:42:56 -04:00
Rohit Nirmal
c59bfd2b7f
Fix building with PCH disabled.
2015-05-26 22:44:51 -05:00
Matthew Parlane
3135b4f3e4
Merge pull request #2461 from lioncash/barrier
...
Thread: Remove unused Barrier class
2015-05-27 13:21:14 +10:00
Lioncash
23c11b3f27
Thread: Remove unused Barrier class
2015-05-26 19:25:59 -04:00
Markus Wick
85e706b4ec
Merge pull request #2459 from degasus/master
...
Common: Fix IsTriviallyCopyable macro for GCC 5
2015-05-26 20:13:14 +02:00
degasus
ebad10f2a1
Common: Fix IsTriviallyCopyable macro for GCC 5
...
Based on quarthex's patch in PR #2440
2015-05-26 19:50:14 +02:00
Tillmann Karras
6ea49da5b9
Jit64: fix ps_sum
...
It's /always/ the register cache.
2015-05-26 19:00:42 +02:00
skidau
8944e07f84
Merge pull request #2457 from degasus/master
...
DolphinWX: Drop dead hotkey button.
2015-05-26 23:53:46 +10:00
degasus
b64301d65c
DolphinWX: Drop dead hotkey button.
2015-05-26 15:50:15 +02:00
Jules Blok
0b61a0dfc5
Merge pull request #2448 from Armada651/depth-inversion
...
D3D: Depth range inversion.
2015-05-26 15:39:50 +02:00
Markus Wick
d7900b4423
Merge pull request #2006 from RisingFog/disc2
...
Append Disc 2 to Titles for Multi-Disc Games
2015-05-26 15:39:42 +02:00
Jules Blok
ca7801da44
D3D: Invert initial depth buffer clear.
2015-05-26 15:31:36 +02:00
galop1n
2975e53091
D3D: Depth range inversion.
...
Credits go to Galop1n for designing this technique and to BhaaLseN for cleaning up the commit.
2015-05-26 15:31:31 +02:00
Markus Wick
a6412fb41e
Merge pull request #2162 from degasus/prefetch_tex
...
CustomTexture: prefetch all available textures
2015-05-26 13:30:26 +02:00
Markus Wick
5d3a248811
Merge pull request #2455 from lioncash/fifo
...
FifoQueue: Use atomics instead of volatile members
2015-05-26 12:26:36 +02:00
Lioncash
de5038849e
FifoQueue: Use atomics instead of volatile members
2015-05-26 05:34:47 -04:00
Ryan Houdek
b038b61a29
[ARMv7] Extend the life of the JIT Recompiler.
...
Until loadstores are fully investigated, let's artificially extend the life of it by disabling all of them.
These instructions break in a very terrible way and eventually all loadstores end up attempting to access memory region (u32)-1.
Disable until someone has enough time to investigate further.
2015-05-25 23:36:28 -05:00
Ryan Houdek
a4a8162fb5
Merge pull request #2188 from JosJuice/dol-cleanup
...
DOL loader cleanup with std::vector and safety checks
2015-05-25 23:51:40 -04:00
Ryan Houdek
f4625e6383
Merge pull request #2398 from JosJuice/revert-854f6b8
...
Attempt at fixing issue 8544 (input recording desyncs)
2015-05-25 23:49:56 -04:00
Ryan Houdek
061848457a
Merge pull request #2382 from RisingFog/vfwfix
...
Fix video dumping incorrect lengths for some games in Windows
2015-05-25 23:46:22 -04:00
Ryan Houdek
f706518dc0
Merge pull request #2390 from darkengine-io/new-qt
...
More miscellaneous Qt fixes
2015-05-25 23:45:21 -04:00
Ryan Houdek
96ef0fce38
Merge pull request #2450 from lioncash/alloc
...
NetPlayClient: Remove unnecessary array allocation
2015-05-25 23:42:49 -04:00
Ryan Houdek
b0b5f4d10d
Merge pull request #2326 from JosJuice/isoproperties-config-block
...
ISOProperties: Don't block when opening default INI in text editor
2015-05-25 23:42:26 -04:00
Ryan Houdek
5911dd528a
Merge pull request #2361 from JosJuice/filesystem-read32
...
Remove CFileSystemGCWii::Read32
2015-05-25 23:40:28 -04:00
Ryan Houdek
c88d6c804a
Merge pull request #2430 from Sonicadvance1/android_panic_handler
...
[Android] Add support for panic alerts to the JNI.
2015-05-25 23:37:48 -04:00
Ryan Houdek
4ba430951a
Merge pull request #2439 from JosJuice/company-from-id
...
Use an ID-to-name map when volume has no company string
2015-05-25 23:32:55 -04:00
Ryan Houdek
0c31013622
Merge pull request #2453 from rohit-n/call-me-bob
...
Fix building with PCH disabled.
2015-05-25 23:28:18 -04:00
Ryan Houdek
1d6375b71f
Merge pull request #2339 from JosJuice/fix-wii-fst-size
...
Fix reading Wii FST size
2015-05-25 23:27:25 -04:00
Rohit Nirmal
dbe54e63ed
Fix building with PCH disabled.
2015-05-25 22:26:43 -05:00
Ryan Houdek
dad5d8e13d
Merge pull request #2357 from degasus/ogl_efb_poke_merge
...
ogl: efb poke merge
2015-05-25 23:26:39 -04:00
Ryan Houdek
3817dd0f91
Merge pull request #2272 from phire/jitil-floatbug
...
JitIL: Fix a bug in floatpoint load/store instructions.
2015-05-25 23:17:56 -04:00
Ryan Houdek
d789d8d75f
[Android] Add support for panic alerts to the JNI.
2015-05-25 22:13:00 -05:00
Ryan Houdek
7c04c76a26
Merge pull request #2421 from Tilka/jit_stuff
...
Jit64: fixes + less code
2015-05-25 23:08:24 -04:00
Ryan Houdek
0c5f5c4519
Merge pull request #2394 from Sonicadvance1/android_block_profiling_api
...
[Android] Block profiling JNI interface
2015-05-25 23:06:37 -04:00
Ryan Houdek
95f9096068
Merge pull request #2396 from Sonicadvance1/fix_racing_cpu_core
...
Fix a race condition when pausing the CPU core.
2015-05-25 23:06:18 -04:00
Ryan Houdek
99d9161e49
Merge pull request #2429 from Sonicadvance1/aarch64_block_profile
...
[AArch64] Implement block profiling.
2015-05-25 23:05:54 -04:00
Markus Wick
1fc3c8aa02
Merge pull request #2451 from degasus/master
...
DSP: Inline DSPControl into DSPState
2015-05-25 15:19:31 +02:00
Ryan Houdek
69963dc4b0
Merge pull request #2274 from degasus/disable_bbox
...
Disable bbox
2015-05-25 08:46:12 -04:00
Tillmann Karras
30ebb2459e
Set copyright year to when a file was created
2015-05-25 13:22:31 +02:00
Tillmann Karras
cefcb0ace9
Update license headers to GPLv2+
2015-05-25 13:22:31 +02:00
Tillmann Karras
268f52e054
Add missing license headers
2015-05-25 13:11:47 +02:00
Tillmann Karras
6d9986846c
Simplify some more license headers
2015-05-25 13:11:41 +02:00
degasus
dd35f5df94
DSP: Inline DSPControl into DSPState
...
This was a struct with exactly one element, and
an overloaded constructor which matches the construtor
of this element. So there is no need for this stacked
structur.
2015-05-25 10:56:14 +02:00
degasus
7e127da791
VideoCommon: Warn if bbox is disabled but used
2015-05-25 09:33:34 +02:00
degasus
029912681e
VideoCommon: return 0 if bbox is disabled
...
Through just returning the last written value sounds better, this crashes Paper Mario.
In my opinion, gfx issues are fine on older GPUs, but crashes should not happen.
2015-05-25 09:33:34 +02:00
degasus
6b2a1e57e2
BBox: remove now unreachable SW bbox implementation
2015-05-25 09:33:34 +02:00
degasus
acd074e291
VideoCommon: Make BBox emulation optional
2015-05-25 09:33:34 +02:00
degasus
ac0e304159
Jitregister: fix common-core dependency
2015-05-25 09:33:34 +02:00
Markus Wick
732802ebd0
Merge pull request #2419 from Armada651/clip-control
...
OGL: Add glClipControl support.
2015-05-25 09:29:43 +02:00
Lioncash
b0075966af
NetPlayClient: Remove unnecessary array allocation
2015-05-24 22:53:25 -04:00
Eder Bastos
4faff3cf62
Android: Decouple SurfaceView initialization and emulation start.
2015-05-24 19:40:11 -04:00
JosJuice
d2e6adb045
Use an ID-to-name map when volume has no company string
...
This is written so that the result of GetCompanyFromID never is cached
(except on Android?). Caching is unnecessary because the string can be
obtained quickly at runtime, and not caching it means that the cache
doesn't have to be invalidated when GetCompanyFromID is edited.
2015-05-24 17:41:53 +02:00
Lioncash
6b30c9710c
SoundStream: Devirtualize StartLogAudio and StopLogAudio
...
These don't rely on anything that might need to be implemented in other SoundStream classes.
2015-05-24 06:10:11 -04:00
Lioncash
07d4dbe657
AudioCommon: Add missing override specifiers
...
Also removes unnecessary virtual keywords.
2015-05-24 06:10:03 -04:00
Lioncash
4695233c98
SoundStream: Devirtualize GetMixer
...
Since it's handled by the base class, there's no need to allow overriding.
2015-05-24 05:49:51 -04:00
Lioncash
35ee8a1362
SoundStream: Internally construct the mixer
...
Instead of creating the mixer externally and then passing it in, it can just be made within the class.
2015-05-24 05:49:41 -04:00
Lioncash
88e1850231
GekkoDisassembler: Fix typecast for the second printf param for mtfsf
2015-05-24 01:54:04 -04:00
Lioncash
612118e8e5
GekkoDisassembler: Fix disassembly of mtfsf's FM field
2015-05-24 01:51:07 -04:00
Lioncash
ac89d00718
DSPCaptureLogger: Add virtual destructor
...
Silences a warning.
2015-05-24 00:44:49 -04:00
Lioncash
c6088cdf31
Merge pull request #2442 from lioncash/netplay
...
NetPlayClient: Fix erroneous shifts for reconstructing system time.
2015-05-23 23:22:11 -04:00
Lioncash
1d2b29734a
NetPlayClient: Rename time variables to be more self-explanatory
2015-05-23 23:07:52 -04:00
Lioncash
6dd10033d3
NetPlayClient: Fix reassembling of system time from packets
...
The shifts need to be swapped to correctly reassemble a 64-bit integer.
2015-05-23 23:06:30 -04:00
Lioncash
5c3fecc8e5
DolphinWX: Add missing breaks to a switch in RegisterView
...
Technically the fallthrough would never happen, as the row numbers correspond to the grid view (which will always be zero or greater). However, it gets rid of compiler warnings on higher warning levels.
2015-05-23 22:16:39 -04:00
Matthew Parlane
8f12cc5bc3
Merge pull request #2433 from lioncash/leak
...
WII_IPC_HLE_Device_net: Fix a leak with getaddrinfo
2015-05-23 19:27:06 +10:00
Lioncash
383b104af0
WiiWad: Use correct form of delete for arrays
2015-05-22 17:52:54 -04:00
Jules Blok
e31982474c
OGL: Depth range inversion.
2015-05-22 23:52:22 +02:00
Jules Blok
88cc91030e
VertexShaderGen: Use correct depth output when glClipControl is supported.
2015-05-22 23:52:21 +02:00
Jules Blok
522e721830
OGL: Add glClipControl support.
2015-05-22 23:52:20 +02:00
Lioncash
9ad35cc986
ExpressionParser: Add missing break in UnaryExpression value setting
2015-05-22 15:02:22 -04:00
Lioncash
760a17abef
WII_IPC_HLE_Device_net: Fix a leak with getaddrinfo
2015-05-22 13:15:27 -04:00
Markus Wick
ad9dae30a8
Merge pull request #2410 from lioncash/swatomic
...
Software: Convert most volatile variables to atomics
2015-05-22 14:11:16 +02:00
Lioncash
474188d606
Merge pull request #2432 from lioncash/android
...
ButtonManager: Pass strings by const reference
2015-05-21 22:37:47 -04:00
Lioncash
8a2f70b2ef
ButtonManager: Pass strings by const reference
2015-05-21 22:22:52 -04:00
Tillmann Karras
df34d43936
Jit64: merge ps_sign into fsign
2015-05-21 12:33:37 +02:00
Tillmann Karras
36d6a16559
Jit64: merge ps_maddXX into fmaddXX
2015-05-21 12:33:37 +02:00
Tillmann Karras
c6147c5ed5
Jit64: merge ps_arith into fp_arith
2015-05-21 12:33:37 +02:00
Tillmann Karras
6d23b511a6
Jit64: merge tri_op into fp_tri_op
2015-05-21 12:33:37 +02:00
Tillmann Karras
dc220fa13d
Jit64: merge ps_sel into fselx
2015-05-21 12:33:36 +02:00
Tillmann Karras
05a55de08f
Jit64: optimize ps_sum
2015-05-21 12:33:36 +02:00
Tillmann Karras
6593ba7ecc
XEmitter: add BLENDPS/BLENDPD
2015-05-21 12:33:36 +02:00
Tillmann Karras
ece0ef4ca8
Jit64: add packed optimization to frsp
2015-05-21 12:33:36 +02:00
Tillmann Karras
6b8ab5993a
Jit64: make ForceSinglePrecision more versatile
2015-05-21 12:33:36 +02:00
Tillmann Karras
9792976ee9
Jit64: fix ForceSinglePrecisionS/P
...
This bug never broke anything because of how these functions are used.
Fixing it should avoid some false dependencies though.
2015-05-21 12:33:36 +02:00
Tillmann Karras
a7d753922d
Interpreter: fix instruction table flags of frsp
...
frsp overwrites both ps0 and ps1 so frD is not an input. Regardless of
whether that's what the hardware does, it's what we do.
2015-05-21 12:33:36 +02:00
Ryan Houdek
eb94e742f1
[AArch64] Implement block profiling.
...
This is time based block profiling unlike the ARMv7 core.
I would like to add cycle counter based block profiling like the ARMv7 core, but it first requires writing a kernel module to enable the counters to userland applications
2015-05-20 22:23:59 -05:00
Eder Bastos
3e5e352fee
Android: Implement an SQLite database-based game library.
2015-05-20 19:55:55 -04:00
Eder Bastos
5b0c047e0b
Android: Remove inheritance from Game model, and improve the relevance of its content
2015-05-20 19:46:19 -04:00
Eder Bastos
4c786cb70c
Android: Implement reading country value from game files.
2015-05-20 19:44:31 -04:00
Lioncash
8dc2909c00
JitWindow: Add missing virtual destructor to HostDisassembler
...
HostDisassemblerLLVM has a destructor, but the class uses a pointer to the base class.
2015-05-20 12:27:47 -04:00
Jules Blok
05f42f94a0
OGL: Use floating point arithmetic to scale the depth value.
2015-05-20 14:22:30 +02:00
Jules Blok
05d60f4fef
Revert "OGL: Change the depth buffer type to GL_FLOAT."
...
This reverts commit 4b2e04b862
.
2015-05-20 14:22:29 +02:00
Jules Blok
9ef1ca4141
Revert "OGL: Switch depth buffers to GL_DEPTH_COMPONENT32F format."
...
This reverts commit be810eb750
.
2015-05-20 14:22:28 +02:00
degasus
d91d935057
OGL: reimplement poke-color
2015-05-20 11:05:31 +02:00
degasus
c7bae5ad11
VideoCommon: Merge EFB pokes
2015-05-20 10:39:21 +02:00
Tillmann Karras
ad6b522c3b
XEmitter: fix L bit in VEX prefix
2015-05-20 09:34:27 +02:00
Markus Wick
695a72c24c
Merge pull request #2414 from Armada651/depth-clamp
...
VideoBackends: Clamp depth to uint24 range.
2015-05-19 14:44:34 +02:00
Fiora
22317ac74c
Merge pull request #2417 from Tilka/vex
...
XEmitter: VEX-related cleanup
I'm merging this solely because of the FMA3 error message
2015-05-18 16:23:23 -07:00
Fiora
ace0a6ec90
Merge pull request #2412 from Tilka/x64cpudetect
...
x64CPUDetect: fix AVX2/BMI1/BMI2/HTT detection
2015-05-18 16:22:23 -07:00
Fiora
b260500045
Merge pull request #2411 from Tilka/cosmetic
...
PowerPC: cosmetic changes
2015-05-18 16:20:52 -07:00
Jules Blok
ef78941042
VideoBackends: Clamp depth to uint24 range.
2015-05-18 23:22:28 +02:00
Tillmann Karras
c2c31086ae
XEmitter: restructure WriteVEXOp wrappers
2015-05-17 18:44:56 +02:00
Tillmann Karras
ae8efaa6a3
XEmitter: add VBLENDVPD and VCMPPD
2015-05-17 18:42:36 +02:00
Tillmann Karras
18e9241637
XEmitter: rename WriteVex to WriteVEX
2015-05-17 09:35:53 +02:00
Tillmann Karras
9e3f4df733
XEmitter: rename WriteRex to WriteREX
2015-05-17 09:35:53 +02:00
Jules Blok
f7151a2a5c
Revert "D3D: Use a 32-bit floating point depth buffer."
...
This reverts commit a224c604a3
.
2015-05-16 22:16:31 +02:00
degasus
562b9d4a9f
VideoCommon: Abort texture prefetching on low RAM
...
There is no nice way to correctly "detect" the "used" memory, so we just say
we're fine to use 50% of the physical memory for custom textures.
This will fix out-of-memory crashes, but we still might run into swapping issues.
2015-05-16 15:39:36 +02:00
degasus
242f7d964d
CustomTexture: prefetch all available textures
2015-05-16 15:12:07 +02:00
skidau
132ae5f457
Merge pull request #2349 from mathieui/remove-traversal-options-ui
...
Netplay: don’t show traversal server/port options (INI config only)
2015-05-15 12:34:05 +10:00
Tillmann Karras
7f57e27a65
x64CPUDetect: fix AVX2/BMI1/BMI2/HTT detection
...
On non-Windows platforms, ECX was not being initialized to 0.
2015-05-14 23:14:34 +02:00
Tillmann Karras
1b01911c01
Jit64: indent far code because it looks nice
2015-05-14 19:12:58 +02:00
Tillmann Karras
6c5e5cc7b8
PowerPC: clean up instruction tables
2015-05-14 19:12:54 +02:00
Tillmann Karras
accefbf0a5
JitBase: small cleanup
2015-05-14 19:08:07 +02:00
Tillmann Karras
5b023b83ec
Jit64: rename twx to twX
...
We use the lower-case x to signal an optional Rc bit.
2015-05-14 19:08:07 +02:00
Tillmann Karras
2074abbe86
Jit64: drop unused argument from SetFPRFIfNeeded
2015-05-14 19:08:05 +02:00
Tillmann Karras
9723a4e2ed
Interpreter: use IntDouble instead of casts
2015-05-14 18:59:05 +02:00
Lioncash
26a3eaf959
Software: Convert most volatile variables to atomics
2015-05-14 12:33:19 -04:00
Markus Wick
8290fa1e46
Merge pull request #2377 from degasus/zfreeze
...
PixelShaderGen: apply zfreeze before ztextures
2015-05-14 11:26:46 +02:00
skidau
e35148fe15
Merge pull request #2387 from lioncash/atomic
...
AudioCommon: Remove usages of volatile variables.
2015-05-14 13:31:28 +10:00
Rohit Nirmal
df9b06d937
Fix building with PCH disabled.
2015-05-13 16:06:09 -05:00
degasus
3d98f6ab9f
PixelShaderGen: apply zfreeze before ztextures
...
The zfreeze option freezes the depth plane of the rasterization.
So this is done before the TEV stages, where the z-textures are applied.
2015-05-13 20:06:23 +02:00
skidau
bdeb067597
Merge pull request #2402 from JosJuice/internal-title
...
Volume: Rename GetName to GetInternalName
2015-05-13 13:19:41 +10:00
skidau
a6739c0960
Merge pull request #2386 from mathieui/irhotkeys
...
Add hotkeys to increase/decrease the IR
2015-05-12 13:05:53 +10:00
Ryan Houdek
0533ecde23
Merge pull request #2397 from Sonicadvance1/aarch64_disable_psq_l
...
[AArch64] Disable psq_l.
2015-05-11 19:21:53 -04:00
Lioncash
3bea58e4f8
Merge pull request #2401 from lioncash/typo
...
WII_IPC_HLE_Device_hid: Fix a function name typo
2015-05-11 16:05:42 -04:00
Ryan Houdek
5bbaa85f25
Merge pull request #2389 from sigmabeta/lollipop-ui-tweaks
...
Android: Add file browser screen to new UI, and several tweaks.
2015-05-11 11:35:51 -04:00
Lioncash
4f8b72ca8b
WII_IPC_HLE_Device_hid: Fix a function name typo
2015-05-11 09:45:10 -04:00
Lioncash
af2daf6c5c
WiiConfigPane: Handle switch cases explicitly
...
Gets rid of a warning on higher warning levels (switching on an enum type should handle cases explicitly)
2015-05-11 06:37:07 -04:00
JosJuice
bad09fc358
Volume: Rename GetName to GetInternalName
...
This is intended to better separate it from GetNames and to clarify
that this name originally wasn't meant to be shown to users.
The ISOProperties GUI is also updated, mainly because labeling
the long banner name "short name" was confusing.
2015-05-11 11:19:30 +02:00
Tillmann Karras
cdf6d185f6
Fix -Wswitch warning
2015-05-11 10:17:36 +02:00
Lioncash
f907e5cace
AlsaSoundStream: Use an enum class for signifying ALSA thread state
2015-05-11 01:56:01 -04:00
Lioncash
353205132c
AlsaSoundStream: Convert volatile variables to atomics
2015-05-11 01:55:59 -04:00
Lioncash
7b376abd3b
Mixer: Convert volatile variables to atomics.
2015-05-11 01:55:50 -04:00
JosJuice
b645547930
Revert "HW: Poll system input from system timers"
...
This reverts commit 854f6b8688
.
Conflicts:
Source/Core/Core/HW/GCPad.cpp
Source/Core/Core/HW/Wiimote.cpp
Source/Core/Core/State.cpp
2015-05-11 07:22:35 +02:00
Ryan Houdek
2d47a159ab
[AArch64] Disable psq_l.
...
Causes flickering in games ever since PR #2172 .
No idea why
2015-05-11 00:11:40 -05:00
skidau
294629fa9e
Merge pull request #2368 from randomstuff/gdb-unix
...
GDB stub over UNIX socket
2015-05-11 14:42:34 +10:00
Ryan Houdek
af305aa168
Fix a race condition when pausing the CPU core.
...
This affects enabling and disabling block profiling on the fly.
The block profiling pauses the CPU cores and then flushes the JIT's block cache and enables block profile.
The issue with this is that when we pause the CPU core, we don't have a way to tell if the JIT recompiler has actually left.
So if the secondary thread that is clearing the JIT block cache is too quick, it will clear the cache as a recompiler is still running that block that
has been cleared.
2015-05-10 21:00:54 -05:00
Ryan Houdek
379f9feebd
Fix non-PCH build.
2015-05-10 20:16:05 -05:00
Ryan Houdek
a36dc19d9b
Add JNI interface for enabling writing block profile results.
2015-05-10 20:03:34 -05:00
Ryan Houdek
0da086e389
Make sure the JitInterface's WriteProfileResults instruction pauses and resumes the CPU core.
2015-05-10 20:02:25 -05:00
mathieui
bb622836b2
Traversal: Add a read-only text for server:port with a "reset to default" button
...
Clicking it will set the config file back to stun.dolphin-emu.org with
port 6262.
2015-05-11 01:10:27 +02:00
Simon McFarlane
66e337a19f
Qt: add proper keyboard shortcuts from wx
2015-05-10 13:57:45 -07:00
Simon McFarlane
64cf6d167f
Qt: Make 'About Qt' action actually open the about box
2015-05-10 13:57:45 -07:00
Simon McFarlane
406270bcf9
Qt: resize main window to fit render
2015-05-10 13:57:45 -07:00
Simon McFarlane
6474616c83
Qt: Prevent crash when closed by the window manager
2015-05-10 13:57:44 -07:00
Fiora
f665b8690c
Merge pull request #2385 from Tilka/small_cleanup
...
Jit64[IL]: remove some unused stuff
2015-05-10 08:18:48 -07:00
Eder Bastos
ca4bec3539
Don't show "Error" when a blank string is returned from a native method.
2015-05-10 10:46:46 -04:00
Lioncash
fcaaa9f649
HotkeyDlg: Fix keypress event binding
...
Previously no keypresses would be recognized during the button press phase.
2015-05-10 03:35:01 -04:00
Lioncash
4920dbed13
AudioCommon: Migrate threadData to OpenALStream and AOSoundStream
...
This is only ever used in these two sound streams. Seems silly to have it as a class member. Converted it to an atomic as well.
2015-05-10 01:02:25 -04:00
mathieui
ea709b6c12
Add hotkeys to increase/decrease the IR
2015-05-10 02:02:47 +02:00
Tillmann Karras
c651906134
Jit64[IL]: remove some unused stuff
2015-05-09 17:17:49 +02:00
JosJuice
35c77abbc2
DOL loader cleanup with std::vector and safety checks
2015-05-09 16:49:18 +02:00
Fog
16081a23f1
Fix video dumping incorrect lengths for some games
2015-05-09 02:28:48 -04:00
Lioncash
76bbd46829
Core: Remove some header inclusions in header files
...
Replaces them with forward declarations of used types, or removes them entirely if they aren't used at all. This also replaces certain Common headers with less inclusive ones (in terms of definitions they pull in).
2015-05-08 22:38:59 -04:00
Lioncash
a7d5084e1f
Merge pull request #2375 from sigmabeta/lollipop-ui-update
...
Implement first few screens of Android 5.0-based UI.
2015-05-08 12:57:00 -04:00
Lioncash
8b2f7b1e88
Merge pull request #2379 from lioncash/header
...
DolphinWX: Remove unnecessary includes
2015-05-08 12:54:56 -04:00
Lioncash
a7e9aea797
DolphinWX: Remove unnecessary includes
2015-05-08 12:39:26 -04:00
Markus Wick
4c3984053d
Merge pull request #2378 from lioncash/ogl
...
OGL: Minor changes in Render.cpp.
2015-05-08 16:00:11 +02:00
Lioncash
cb20589d7f
Merge pull request #2341 from lioncash/fwd
...
DolphinWX: Remove unnecessary forward declarations
2015-05-08 09:54:23 -04:00
Lioncash
a94e4dd07f
OGL: Join declarations and assignments in Render
2015-05-08 09:29:36 -04:00
Lioncash
eeb0f0b7c4
OGL: Get rid of some explicit deletes in Render
2015-05-08 09:28:29 -04:00
Jules Blok
1d745d632a
PixelShaderGen: Clamp zCoord to the depth range.
2015-05-08 14:43:43 +02:00
Jules Blok
d04af15ad4
TextureConversionShader: Use floating point values in clamp().
2015-05-08 14:32:24 +02:00
Jules Blok
5dbb43ae1d
PixelShaderGen: Use new multiplier everywhere and directly cast to int instead or rounding.
2015-05-08 14:32:23 +02:00
Jules Blok
a224c604a3
D3D: Use a 32-bit floating point depth buffer.
2015-05-08 14:32:22 +02:00
Jules Blok
84a5f4abb0
VideoBackends: Use the new divisor when clearing the depth buffer.
2015-05-08 14:32:22 +02:00
Jules Blok
1a409a2e16
VideoBackends: Clamp Z peek values.
2015-05-08 14:32:21 +02:00
Jules Blok
0f2c72f0f8
VideoCommon: Clamp integer conversions.
2015-05-08 14:32:16 +02:00
Jules Blok
b0770e2a0c
VideoBackends: Floor depth values in depth copy shaders.
2015-05-08 14:29:30 +02:00
Jules Blok
be810eb750
OGL: Switch depth buffers to GL_DEPTH_COMPONENT32F format.
2015-05-08 14:29:30 +02:00
Jules Blok
4b2e04b862
OGL: Change the depth buffer type to GL_FLOAT.
2015-05-08 14:29:29 +02:00
Jules Blok
c4f85a38e6
VideoBackends: Use proper floating point depth precision.
2015-05-08 14:29:29 +02:00
Gabriel Corona
04cb6fccd6
GDB stub over UNIX socket
...
This is available with the `GDBSocket` option in
`~/.dolphin-emu/Config/Dolphin.ini`.
GDB can connect to it with:
$ powerpc-eabi-gdb
(gdb) target remote |socat STDIO UNIX:foo.sock
Because I don't like so much binding the GDB stub socket to 0.0.0.0.
On Linux, with a suitable umask, we can make sure that another local
user cannot connect to the socket.
2015-05-08 14:23:37 +02:00
Chris Burgener
5af98db8c3
Append Disc 2 to Titles for Multi-Disc Games
...
Fixes issue 5799
https://code.google.com/p/dolphin-emu/issues/detail?id=5799
2015-05-07 22:59:16 -04:00
shuffle2
268b8fd26f
Merge pull request #2026 from mrgreywater/d3d-debugbreak
...
D3D: More debug information and break on error
2015-05-07 19:29:21 -07:00
Eder Bastos
b47835fc07
Implement first few screens of Android 5.0-based UI.
2015-05-07 22:27:42 -04:00
shuffle2
94995503aa
Merge pull request #2374 from randomstuff/fix-unpn
...
Fix build without UPnP
2015-05-07 18:36:02 -07:00
shuffle2
6fe2ab7fbf
Merge pull request #2359 from darkengine-io/new-qt
...
DolphinQt updates
2015-05-07 18:34:42 -07:00
Simon McFarlane
6c6fe8d724
QT: Add reset button
2015-05-07 12:37:19 -07:00
Simon McFarlane
5988750fe4
QT: Add Play/Pause to Emulation menu
2015-05-07 12:37:19 -07:00
Simon McFarlane
29a9c24b73
QT: Add ISO folder browser
2015-05-07 12:37:18 -07:00
Lioncash
f77587506f
Merge pull request #2345 from lioncash/tl
...
VideoConfigDiag: Simplify string translation handling
2015-05-07 05:05:48 -04:00
skidau
9eaae880e5
Merge pull request #1793 from LPFaint99/memcard
...
GCI folder: flush 1 second after last block is written
2015-05-07 16:30:01 +10:00
skidau
7b3bc9bfc7
Merge pull request #2373 from jdieter/master
...
Reverts #2362 while still fixing deadlock when adding multiple Wiimotes
2015-05-07 16:28:13 +10:00
Gabriel Corona
469ea24717
Fix build without UPnP
...
There is no checkbox.
2015-05-06 20:59:19 +02:00
Jonathan Dieter
3fe839d225
Avoid deadlock when adding Wiimotes (attempt #2 )
...
Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>
2015-05-06 21:53:53 +03:00
Ryan Houdek
80fe5e0a55
Merge pull request #2370 from sigmabeta/native-libs-task-removal
...
Remove the "nativeLibsToJar" gradle task.
2015-05-06 09:16:43 -04:00
Jules Blok
24594a7888
PixelShaderCache: Fix MSAA depth copy shader.
2015-05-06 12:43:35 +02:00
joewestcott
72956d59c8
Reverts pull request #2362 , fixes issue 8542.
2015-05-06 05:36:37 +01:00
skidau
a7e2425ffb
Merge pull request #2367 from skidau/GCPad-Recalibrate-forced
...
Skipped the calibration of the GC controller if it has already been calibrated.
2015-05-06 12:42:29 +10:00
Eder Bastos
2fe4b9ce68
Remove the "nativeLibsToJar" gradle task.
2015-05-05 22:34:56 -04:00
skidau
41f168373b
Merge pull request #2362 from jdieter/master
...
Avoid deadlock when adding Wiimotes
2015-05-06 12:30:54 +10:00
skidau
571cdcddd8
Merge pull request #2340 from dibas/testing
...
Show the cursor in os x fullscreen by default. Fixes issue 8376.
2015-05-06 12:28:45 +10:00
Simon McFarlane
629f45f1a5
QT: add exit function
2015-05-05 17:58:21 -07:00
comex
6414cdabb2
Merge pull request #2286 from JosJuice/wii-opening-bnr
...
Read opening.bnr to get names from Wii discs
2015-05-05 16:20:04 -04:00
skidau
06bca52d80
Skipped the calibration of the GC controller if it has already been calibrated.
2015-05-05 13:05:34 +10:00
Jules Blok
7a1252f7e5
VideoBackends: Implement depth copy shaders with integer math.
2015-05-05 00:40:25 +02:00
Ryan Houdek
f9dc8a39c0
Merge pull request #2350 from sigmabeta/master
...
Convert the Android source code to Gradle.
2015-05-03 22:01:02 -04:00
Markus Wick
e0cfd934d2
Merge pull request #2364 from kayru/d3d_texture_bsf
...
D3D: StateManager::Apply no longer iterates through every texture and sampler slot
2015-05-03 21:39:33 +02:00
Yuriy O'Donnell
df5750edfd
D3D: Replaced explicit _BitScanForward with LeastSignificantSetBit
2015-05-03 21:14:29 +02:00
Jonathan Dieter
4112794d4a
Avoid deadlock when adding Wiimotes
...
Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>
2015-05-03 18:47:15 +03:00
JosJuice
df8e768b77
wx: Now that Wii doesn't support descriptions, rename Notes to Maker
...
I'm not sure if Maker is the best name (Developer? Publisher?
Company? Copyright?) but I went with it because it's
what the game properties window uses. For the sake of
backwards compatibility, the INI option wasn't renamed.
2015-05-03 16:13:55 +02:00
JosJuice
2d5d5fa83e
Read opening.bnr to get names from Wii discs
...
This makes Dolphin display the same names as the Disc Channel.
2015-05-03 15:58:35 +02:00
JosJuice
272f9d3cbc
FileSystemGCWii: Allow reading files partially
2015-05-03 15:44:24 +02:00
JosJuice
0d9ca081bb
Remove CFileSystemGCWii::Read32
...
A function that does the same thing was added to IVolume in 4cd00e3
.
2015-05-03 11:39:20 +02:00
Eder Bastos
c80225ea4d
Convert the Android source code to the directory structure of a Gradle-based Android Studio project.
2015-05-02 21:49:17 -04:00
Markus Wick
a76bfb1f55
Merge pull request #2356 from Armada651/dump-efb
...
VideoCommon: Implement EFB dumping for both backends.
2015-05-02 13:27:38 +02:00
Jules Blok
54f4443971
VideoCommon: Implement EFB dumping for both backends.
2015-05-02 13:23:33 +02:00
Ingve Skåra
5799824b22
Fix dead link
2015-05-01 21:42:50 +02:00
mathieui
7b45eae6e7
Add missing ifdefs around GCAdapter code in Controller config
...
Otherwise the build fails if libusb is not found
2015-05-01 17:56:15 +02:00
JosJuice
9851bd818d
CoreTiming: Add assert to ScheduleEvent_Immediate
...
My PR with ScheduleEvent_Immediate and magumagu's PR with the asserts
were made around the same time, so this function never got an assert.
2015-05-01 12:17:39 +02:00
skidau
9348b2e1a6
Merge pull request #2330 from mathieui/background-gc-adapter-scan
...
Add a background thread to detect the GC adapter
2015-05-01 12:09:18 +10:00
mathieui
df8b86ed63
Traversal: use the defaults if empty or space-only config entries are detected
2015-05-01 03:11:28 +02:00
Simon McFarlane
886e5c80dd
Remove BanishBackground function
...
No longer needed
2015-04-30 17:33:24 -07:00
Simon McFarlane
e6e046e37c
Make revision text wxStaticText
2015-04-30 17:32:45 -07:00
Simon McFarlane
df341ffba6
Change about page branch info to wxStaticText
2015-04-30 17:22:37 -07:00
mathieui
c452e72ca7
Netplay: don’t show traversal server/port options (INI config only)
2015-05-01 02:03:53 +02:00
Lioncash
9012ed18b1
AboutDolphin: Set the multi-line style for branch information
...
Without this, all the branch information would be put on one line, which isn't intended.
2015-04-30 18:07:58 -04:00
Lioncash
2b89350868
AboutDolphin: Remove unnecessary code
2015-04-30 18:05:30 -04:00
Markus Wick
4b00ccbe4e
Merge pull request #2342 from rohit-n/warnings
...
Silence -Wshadow and -Wsign-compare warnings.
2015-04-30 23:22:19 +02:00
Lioncash
d69a4697fa
Merge pull request #2347 from JosJuice/fix-dol-crash
...
Fix DOL crash caused by VolumeHandler removal
2015-04-30 07:36:55 -04:00
JosJuice
f7d20204bb
Fix DOL crash caused by VolumeHandler removal
...
Similar to the WAD crash (0b44d7c
) but in another part of the boot code.
2015-04-30 13:29:09 +02:00
mathieui
ec7445d66b
GCAdapter: Add a setting to toggle rumble
2015-04-30 11:35:16 +02:00
mathieui
57f458fe9b
GCAdapter: Add a background thread to detect the adapter
...
This scanning thread either polls libusb or checks every 500ms for a
change depending on host capabilities. The GC Adapter can now be plugged
and unplugged at any time when dolphin is open, it will be used if the
direct connect option is set.
2015-04-30 11:35:16 +02:00
Simon McFarlane
cd7466864e
Make OC slider match enabled state on window load
2015-04-30 01:28:43 -07:00
Lioncash
0004b6004b
VideoConfigDiag: Simplify string translation handling
...
Explicit wxGetTranslation usage isn't necessary
2015-04-30 04:18:13 -04:00
Simon McFarlane
6728f87677
Add size to CPU clock override slider
...
Fixes slider having 0 width on wxGTK
2015-04-29 21:49:58 -07:00
skidau
d46598e51a
Merge pull request #2336 from lioncash/tl
...
FrameTools: Simplify some wx string translation marking
2015-04-30 14:03:21 +10:00
skidau
052162e6b9
Merge pull request #2332 from comex/fix-alerts-maybe
...
Fix some false positive ScheduleEvent alerts
2015-04-30 14:03:00 +10:00
Rohit Nirmal
76181f9327
Silence -Wshadow and -Wsign-compare warnings.
2015-04-29 19:59:34 -05:00
comex
bac4167ff5
Merge pull request #2319 from comex/linted-fix-qualcomm-fail
...
(lint issues fixed) Fix OpenGLES 3.0 on Qualcomm's crappy driver, it can't bitshift sometimes.
2015-04-29 17:09:56 -04:00
Yuriy O'Donnell
2b664f5d89
D3D: StateManager::Apply no longer iterates through every texture and sampler slot
...
Now using bit scan through dirty slot masks.
2015-04-29 20:08:00 +02:00
JosJuice
ee694e327a
Get rid of banner loaders and move their functionality to volumes
...
Having some data available in banner loaders and some other data
data available in volumes gets messy, especially with GetNames(),
which is available in both but returns different results
depending on which one is used. This change drops support
for reading names and descriptions from Wii save data.
2015-04-28 23:44:29 +02:00
Lioncash
88f7536d81
DolphinWX: Remove unnecessary forward declarations
...
These are all fully defined
2015-04-28 17:32:38 -04:00
dibas
441976e09b
Show the cursor in os x fullscreen by default. Fixes issue 8376.
2015-04-28 22:12:39 +02:00
JosJuice
04fcb72e0b
Fix reading Wii FST size
2015-04-28 17:20:33 +02:00
JosJuice
d43a920924
Filesystem: Return file list reference instead of modifying argument
2015-04-28 12:48:05 +02:00
Simon McFarlane
8f56138ec4
Use wxStaticText::Wrap rather than manually inserting newlines
2015-04-28 01:17:43 -07:00
Simon McFarlane
df7c9664da
Set minimum size on config window
...
To prevent tabs from getting a scrollbar
2015-04-27 22:55:08 -07:00
Lioncash
be3bd52bb5
FrameTools: Simplify some wx string translation marking
2015-04-28 00:02:35 -04:00
Matthew Parlane
c58e94cf95
Merge pull request #2331 from lioncash/access
...
DolphinWX: Make some UI functions/members private
2015-04-28 15:42:52 +12:00
Matthew Parlane
42ebf5b3bf
Merge pull request #2333 from lioncash/virt
...
InputCommon/Core: Get rid of some virtual destructor warnings
2015-04-28 15:41:48 +12:00
Lioncash
8e59987d46
TextureDecoder_Common: Add missing algorithm include
...
It was being indirectly included, causing VS to syntactically mark std::min/max usages as being undefined (however it still compiled fine, of course)
2015-04-27 23:17:41 -04:00
Matthew Parlane
5091a18369
Merge pull request #2334 from lioncash/uninit
...
Interpreter_LoadStorePaired: Silence uninitialized variable warnings
2015-04-28 14:57:49 +12:00
Lioncash
9603fb6ccd
Interpreter_LoadStorePaired: Silence uninitialized variable warnings
2015-04-27 22:54:58 -04:00
Lioncash
d39b519850
InputCommon/Core: Get rid of some virtual destructor warnings
...
These classes have virtual methods, but no virtual destructor, which causes warnings on some compilers.
2015-04-27 21:41:59 -04:00
comex
65457628d7
Merge pull request #2324 from endrift/about-dialog-osx
...
Attempt to beautify About dialog on OS X.
2015-04-27 21:23:27 -04:00
comex
a9fe0ec0ab
Fix some false positive ScheduleEvent alerts:
...
- CEXIETHERNET::SendComplete is always called from the main thread, so
drop the _Threadsafe.
- Mark the FIFO player thread as the "CPU thread" so it can call
ScheduleEvent without complaints. I haven't actually tested this,
since I don't know how to use the FIFO player; it might break
something.
2015-04-27 21:19:28 -04:00
Lioncash
899fd55ea8
DolphinWX: Make some general UI functions/vars private
2015-04-27 21:04:05 -04:00
Lioncash
263e64e939
DolphinWX: Make some debugger functions/vars private
...
Some classes expose things that aren't used outside of them (and in some cases, shouldn't be exposed).
2015-04-27 20:42:18 -04:00
skidau
4bf4778cd7
Merge pull request #2312 from comex/shutdown-race-condition
...
Exit ReadDataFromFifoOnCPU, PushFifoAuxBuffer early if shutting down (GpuRunningState=false)
2015-04-27 19:47:00 +10:00
skidau
b8eecff5c9
Merge pull request #2325 from JosJuice/isoproperties-zero-files
...
ISOProperties: Correctly handle partitions with 0 files
2015-04-27 19:45:21 +10:00
skidau
472e281445
Merge pull request #2316 from comex/fix-watch
...
Fix watchpoints ("memory breakpoints") with JIT
2015-04-27 19:42:13 +10:00
Lioncash
b457c61b3e
Merge pull request #2328 from rohit-n/format
...
Silence -Wformat warnings in debug builds.
2015-04-26 16:19:08 -04:00
Rohit Nirmal
fb46afd5c3
Silence -Wformat warnings in debug builds.
2015-04-26 13:45:06 -05:00
Rohit Nirmal
10aa6488d9
Qt: Check if game filename is null before loading.
...
This is so that the error message box does not
appear if the user simply cancels loading a game.
2015-04-26 11:13:16 -05:00
LPFaint99
c4ba7e51e5
GCI folder: flush 1 second after last block is written
2015-04-25 15:40:40 -07:00
Jeffrey Pfau
af20e7498c
Only wxMac supports scaleFactor, so only use it on OS X
2015-04-25 14:53:37 -07:00
Jeffrey Pfau
4a97045d81
Add hack for removing background from text controlers, per comex
2015-04-25 14:52:53 -07:00
JosJuice
db1d81ebf8
ISOProperties: Don't block when opening default INI in text editor
...
The purpose of blocking is to reload user INIs after they
have been edited. However, ISOProperties never reloads
default INIs, because they aren't meant to be edited.
Blocking on default INIs is thus useless, and it's
rather annoying for games that have two default INIs,
because it makes it impossible to see both at once.
2015-04-25 22:15:48 +02:00
JosJuice
fbed0b4a9c
ISOProperties: Correctly handle partitions with 0 files
2015-04-25 15:33:20 +02:00
Jeffrey Pfau
addbafcfda
Attempt to beautify About dialog on OS X.
...
Added a 2x version of the logo, and cleaned up layout a bit.
2015-04-25 04:22:32 -07:00
Matthew Parlane
392b9abece
Merge pull request #2016 from RisingFog/splash
...
Update About Dolphin Screen
2015-04-25 21:50:40 +12:00
magumagu
645aa5af8b
Merge pull request #2323 from dolphin-emu/itym
...
ITYM PowerPC::Write_U{8,16}, not Memory::
2015-04-24 22:19:37 -07:00
comex
7fe13d9af8
Merge pull request #2175 from RachelBryk/oc
...
Disable oc setting while netplay or movie is active.
2015-04-25 00:58:16 -04:00
comex
9d8c347e8d
Merge pull request #2290 from RachelBryk/cc-tasinput
...
Implement classic controller tas input.
2015-04-25 00:44:29 -04:00
comex
38a14b73a4
Merge pull request #2321 from JosJuice/wiimote-battery-fix
...
Fix emulated Wii Remote battery level being low when not configured
2015-04-24 22:43:05 -04:00
comex
dea88ef5a1
ITYM PowerPC::Write_U{8,16}, not Memory::
...
PowerPC does exceptions and hardware and stuff, Memory doesn't.
I did not realize until a few minutes ago that there were two versions of these functions. This is why namespaces suck. Anyway, these were added by Mullin earlier this year.
2015-04-24 22:41:10 -04:00
comex
132e1068ce
Remove checks that disable fastmem if debugging and ENABLE_MEM_CHECK are enabled.
...
They weren't sufficient and are made redundant by previous commits; they
also (on master) caused breakage due to Jit64::psq_stXX assuming writes
would be fastmem and not clobber a register under certain conditions.
That really needs to be refactored, but for now, this works.
2015-04-24 22:37:54 -04:00
comex
2264e7b087
Use a fake exception to exit early in case of memory breakpoints.
...
Change TMemCheck::Action to return whether to break rather than calling
PPCDebugInterface::BreakNow, as this simplified the implementation; then
remove said method, as that was its only caller. One "interface" method
down, many to go...
2015-04-24 22:37:54 -04:00
comex
dd7ab4812b
On x86, disabling fastmem isn't enough actually.
...
Without fastmem, the JIT code still does an inline check for RAM
addresses. With watchpoints we have to disable that too. (Hardware
watchpoints would avoid all the slow, but be complicated to implement
and limited in number - I doubt most people debugging games care much if
they run slower.)
With this change and watchpoints enabled, Melee runs at no more than 40%
speed, despite running at full speed without them. Oh well. Better
works slowly than doesn't bloody work.
Incidentally, I'm getting an unrelated crash in
PowerPC::HostIsRAMAddress when shutting down a game. This code sucks.
2015-04-24 22:37:54 -04:00
comex
b84f6a55ab
Automatically disable fastmem and enable memcheck when there are any watchpoints.
...
- Move JitState::memcheck to JitOptions because it's an option.
- Add JitOptions::fastmem; switch JIT code to checking that rather than
bFastmem directly.
- Add JitBase::UpdateMemoryOptions(), which sets both two JIT options
(replacing the duplicate lines in Jit64 and JitIL that set memcheck
from bMMU).
- (!) The ARM JITs both had some lines that checked js.memcheck
despite it being uninitialized in their cases. I've added
UpdateMemoryOptions to both. There is a chance this could make
something slower compared to the old behavior if the uninitialized
value happened to be nonzero... hdkr should check this.
- UpdateMemoryOptions forces jo.fastmem and jo.memcheck off and on,
respectively, if there are any watchpoints set.
- Also call that function from ClearCache.
- Have MemChecks call ClearCache when the {first,last} watchpoint is
{added,removed}.
Enabling jo.memcheck (bah, confusing names) is currently pointless
because hitting a watchpoint does not interrupt the basic block. That
will change in the next commit.
2015-04-24 22:37:53 -04:00
comex
3499f2c2d0
To make up for it, make pressing enter on the value textbox set the value.
2015-04-24 22:19:21 -04:00
comex
0c18e5886d
Remove mnemonics in MemoryWindow.
...
On OS X, this broke Cmd-V to paste in the text boxes. Apparently wx
thinks having mnemonics (which are Alt-* on Windows) be Cmd-* on OS X,
even if this disables standard shortcuts, is a good idea.
Lioncash suggested just getting rid of the accelerators on non-menu
controls, so I'm doing that rather than disabling them only on OS X.
2015-04-24 22:06:03 -04:00
comex
37d00cceda
Fix wx bullshit which made the watch view assert on my machine.
...
1) Apparently wxString::Format is type safe, and passing a u32 to it
with the format "%lu" crashes with a meaningless assertion failure.
Sure, it's the wrong type, but the error sure doesn't help...
2) "A MenuItem ID of Zero does not work under Mac". Thanks for the
helpful assert message, no thanks for making your construct have random
platform-specific differences for no reason (it's not like menu item IDs
directly correspond to a part of Cocoa's menu API like they do on
Win32).
2015-04-24 22:04:46 -04:00
Lioncash
87bd57e0be
Merge pull request #2322 from JosJuice/extract-file-fix
...
Fix extracting files from Wii discs
2015-04-24 16:32:23 -04:00
JosJuice
2e10a71dcd
Fix extracting files from Wii discs
...
I broke it for individual files but not folders in 4.0-6016.
2015-04-24 22:08:15 +02:00
JosJuice
fe9fdd3244
Fix emulated Wii Remote battery level being low when not configured
...
All the multiplying and dividing by 100 in controller configs is
messy... An attempted solution to the problem was to not multiply
default_value by 100 in ControllerEmu::ControlGroup::LoadConfig,
but that broke other things instead, so I went with this.
2015-04-24 19:36:08 +02:00
comex
b3aaa46d42
Merge pull request #2088 from Sintendo/diecmp
...
Emit 'TEST reg, reg' for 'CMP reg, 0' automatically
2015-04-23 16:34:23 -04:00
Dwayne Slater
ae83a1b821
Fix OpenGLES 3.0 on Qualcomm's crappy driver, it can't bitshift sometimes.
...
[fixed lint issues and grammar ~comex]
2015-04-23 16:33:12 -04:00
JosJuice
235ecfbed7
Return GetNames languages, to avoid hardcoded language lists in callers
...
This makes the code cleaner and also leads to some user-visible changes:
The wx game properties will no longer let the user
select WAD languages that don't have any names.
The Qt game list will now display names using the languages
set in the configuration instead of always using
English for PAL GC games and Japanese for WADs.
If a WAD doesn't have a name in the user's preferred language,
English is now selected as a fallback before Japanese.
2015-04-23 08:14:39 +02:00
comex
87a63713f4
Merge pull request #2317 from comex/oops
...
Fix code broken by merge
2015-04-23 02:08:28 -04:00
comex
74c30d1784
Fix code broken by merge
2015-04-23 02:07:45 -04:00
Lioncash
a39985fe08
Merge pull request #2315 from lioncash/code
...
DolphinWX: Remove superfluous code in FrameTools
2015-04-23 02:05:14 -04:00
comex
ad95454d04
Merge pull request #2223 from phire/imm
...
Cleanup OpArg, make immediates more explicit.
2015-04-23 01:53:18 -04:00
Lioncash
8fb36228e5
Merge pull request #2311 from JosJuice/fix-wad-crash
...
Fix WAD crash caused by VolumeHandler removal
2015-04-23 00:23:42 -04:00
Lioncash
819f4d994c
DolphinWX: Remove superfluous code in FrameTools
2015-04-22 19:56:50 -04:00
Rachel Bryk
5047cf562a
Implement classic controller tas input.
2015-04-22 16:19:13 -04:00