Unknown W. Brackets
0b7e43d05c
Allow the graphicsContext to be overridden.
...
This is useful when coming from, for example, headless.
2016-03-20 19:31:02 +01:00
Henrik Rydgard
4063f7e0db
Fill out GPU_Vulkan.cpp with what's mostly a copy of GLES_GPU.cpp
2016-03-20 19:30:11 +01:00
Henrik Rydgard
b94572e3ba
Assorted cleanup
2016-03-13 15:17:31 +01:00
Henrik Rydgard
b39206f922
Use the app cache directory on Android for the shader cache.
2016-01-17 22:15:23 +01:00
Henrik Rydgard
94c91e199a
Minor GPU interface change needed for a WIP backend
2016-01-06 23:53:21 +01:00
Henrik Rydgard
e11d0a7e1c
Minor GPU interface cleanup
2016-01-06 23:49:02 +01:00
Unknown W. Brackets
aa0055cea7
Track the running GPU backend separate from config.
...
This way we can change the config directly when we want to save a new
setting, rather than having hacks to use a temp var.
2016-01-05 22:37:28 -08:00
Henrik Rydgard
15de6e6b98
GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
...
Needed to prevent clutter all over the codebase.
Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Unknown W. Brackets
a563e606b3
Resolve PBP directories earlier in load process.
...
This allows us to initialize the memory AFTER determining the proper size,
in the case of remasters. It also avoids going through load twice.
2015-12-28 14:13:07 -08:00
Unknown W. Brackets
d273deedeb
Use MEMSIZE SFO param to detect 64MB homebrew.
...
Now, use 32MB for normal games even in PSP-2000 mode, which is how real
firmware behaves.
2015-12-23 15:16:48 -08:00
Unknown W. Brackets
dd5c91108c
Use a background thread to load ISO into RAM.
...
This way we don't get slow startup. This will also cache the CSO data,
for example, rather than the raw data, using up less RAM. It might even
be reasonable to enable on 32-bit.
2015-12-19 15:23:25 -08:00
Henrik Rydgard
b998131581
Move the symbol map to the heap, deallocate it when no game is running.
2015-10-31 23:01:19 +01:00
Henrik Rydgard
d6a370a4c4
Add comments to compat.ini, System.cpp
2015-09-27 01:23:21 +02:00
Henrik Rydgard
b07b002040
Introduce "Compatibility Flags".
...
These should be used very restrictively, see comment in Compatibility.h.
Should help #8004 , by disabling depth rounding in Fight Night round 3.
2015-09-27 01:23:20 +02:00
Henrik Rydgard
8996f58693
Generate save state IDs for homebrew using the elf or directory name where applicable.
2015-09-25 19:27:40 +02:00
Henrik Rydgard
58d3137b10
Get rid of a bunch of more uses of stat64 on Windows.
2015-09-23 09:48:55 +02:00
Henrik Rydgard
0084b2ac30
Simplify FileUtil::Exists. Minor cleanups.
...
Might possibly help #7967 (XP) by avoiding _wstat64? That would be a libc bug though.
2015-09-22 22:50:29 +02:00
Unknown W. Brackets
e0f85a9c6b
Native merge part 1: skip native/ in includes.
2015-09-06 12:19:33 -07:00
Henrik Rydgard
e69a14ffff
Don't set ARM "FastMode". Not worth the compat impact as is, could be made smarter. Should help issue #7234
2015-07-19 18:22:22 +02:00
Unknown W. Brackets
88b23460f1
Add a file loader to perform disk caching.
...
Had to do some tricks to handle gameinfocache threads properly.
2015-07-02 20:58:58 -07:00
Henrik Rydgard
381e0c0fe3
Implement basic savedata UI. Not much actual functionality yet but can browse saves and states.
2015-06-11 23:59:02 +02:00
Peter Tissen
ba96b7b31c
Just save the current config every time the config file is switched
...
also undo #7473 because it would now introduce redundant writes.
2015-02-14 19:21:26 +01:00
Peter Tissen
aa6985f5c2
Save after changing recent list
...
regarding #7472 . If this is not done then the config file (the main config,
the per-game config files do not have recent entries) is loaded when a game
with game-specific settings is touched.
2015-02-13 10:27:11 +01:00
Henrik Rydgard
62d86f3246
Remove useless indirection class "PSPMixer"
2015-01-11 12:02:49 +01:00
Unknown W. Brackets
0a6a70f53f
Allow switching cpu thread on/off ingame.
2014-12-20 17:39:42 -08:00
Henrik Rydgård
71c9804ffd
Merge pull request #7195 from Bigpet/copydefaults
...
copy the current config when creating a pre-game config
2014-12-20 19:25:31 +01:00
Unknown W. Brackets
8d68c055cc
Clear SFO data on game quit.
...
Saves the correct MENU after game exit. Seems more sane.
2014-12-20 08:29:56 -08:00
Peter Tissen
a5fcf9dd5f
Make 'load defaults' work for per-game configs. Move 'stop' code into PSP_Shutdown
2014-12-19 14:56:36 +01:00
Henrik Rydgard
75a9420b21
Reduce the number of places we include JitCommon.h. Update native.
2014-12-12 23:49:08 +01:00
Unknown W. Brackets
b620070fa6
Kill FileLoader::Reopen()...
...
Was a bad idea.
2014-11-23 14:08:14 -08:00
Unknown W. Brackets
fd2d7406d1
Make LocalFileLoader essentially private.
2014-11-23 14:02:35 -08:00
Unknown W. Brackets
967b589778
Consistently use FileLoader for standard ISOs.
2014-11-23 13:59:56 -08:00
Unknown W. Brackets
102b7b03fa
Add an interface to load files with.
...
This allows loading from other than raw files.
2014-11-23 13:25:32 -08:00
Henrik Rydgard
d24abb3af0
More GetPointer cleanup. memCardDirectory->memStickDirectory.
2014-10-19 23:20:51 +02:00
Henrik Rydgard
1d7642fa48
Remove most mentions of the "_XBOX" define
2014-08-24 14:21:35 +02:00
Unknown W. Brackets
640c1231f3
Improve a crash in disassembly on game shutdown.
2014-07-20 14:42:20 -07:00
Henrik Rydgård
0e5679c833
Revert "Detect Peace Walker's anti-cheat hash func"
2014-07-20 23:39:11 +02:00
Unknown W. Brackets
aa28c0f40d
Improve a crash in disassembly on game shutdown.
2014-07-18 00:22:19 -07:00
Henrik Rydgard
38609f3e6b
Cleam up thread names a bit, name the Main thread.
...
Also makes some logging VERBOSE.
2014-06-29 12:53:03 +02:00
Unknown W. Brackets
6d104edb5d
Make sure not to leak any enabled vertex arrays.
...
When returning to EmuScreen, we need to reset any enabled vertex arrays or
we could crash in EmuScreen. Also, when starting a frame / dirting the
shader, make sure also to toggle the vertex arrays.
2014-06-22 21:42:29 -07:00
Henrik Rydgard
1d0cc3417c
Audio stuff: Cleanup, delete dead code
2014-06-22 14:01:23 +02:00
Henrik Rydgard
6ec74ef99e
Be consistent about how we read and update the UI state variable
2014-06-22 09:57:01 +02:00
Unknown W. Brackets
a09f1fd80f
Clean up a leak in sceAudiocodec load state.
2014-05-29 08:11:00 -07:00
Unknown W. Brackets
d97c229eaf
Fix IsOnSeparateCPUThread(), was always false.
...
Erp, because of detach().
2014-04-28 23:22:46 -07:00
kaienfr
b18252b2b5
Support audio playing (AT3, AT3+, Mp3, AAC)
2014-03-23 19:45:08 +01:00
Henrik Rydgard
efa7ba5570
Set both Default-NAN and FZ on ARM. See comments.
...
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0274h/Babffifj.html
2014-03-23 10:07:20 +01:00
Unknown W. Brackets
996fa39684
Reduce some unnecessary includes in Core/.
2014-03-15 10:41:07 -07:00
Ced2911
596dea63ed
[Xbox]
2014-03-02 11:29:27 -08:00
Ced2911
59f4c05132
[core/common] cpu/gpu threading
2014-03-02 11:29:07 -08:00
Ced2911
f012e7a879
[core] 360 fixes
2014-03-02 11:24:10 -08:00
Ced2911
cc9f238d36
[xbox] 360 support for Core
2014-03-02 11:22:02 -08:00
Unknown W. Brackets
5dec831abc
Reset initing if boot fails with threading off.
...
Fixes #5580 .
2014-02-28 09:58:10 -08:00
The Dax
8c31e1ca21
Add a basic decrypted EBOOT.BIN dump function.
...
It won't dump already decrypted EBOOTs.
2014-02-27 01:35:17 -05:00
Unknown W. Brackets
71ad115b81
Fix incorrect return in PSP_Init().
...
Mostly affects reset and tests, PSP_InitUpdate() worked properly for the
normal flow.
2014-02-17 10:57:47 -08:00
Unknown W. Brackets
1d8375924a
Allow double PSP_Shutdown() without any error.
...
We call it in a few places to "ensure" shutdown, e.g. before resetting,
but there are cases of double-shutdown. Let's allow it since there's
there shouldn't be any multithreading here.
2014-02-14 21:53:59 -08:00
Unknown W. Brackets
d2108a962e
Switch from USING_GLES2 to MOBILE_DEVICE.
...
Still using USING_GLES2 for, well, GLES2. But for things that are really
about mobile, we need a new define. Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Henrik Rydgård
2b05a60d9d
Clear out the jit pointer on shutdown. Some cleanup.
2014-01-28 11:32:54 +01:00
Unknown W. Brackets
a73b15b963
In multithreadead, load the game async.
...
This way if it takes time to load, things aren't frozen while it's doing
that. This allows us to show any sort of loading animation or etc. we
want.
Before, it might show a odd looking game select screen while loading, and
then finally go to black. Now it immediately goes to black.
Fixes #2030 .
2014-01-19 14:41:01 -08:00
sum2012
3bf2fcacf0
Make Log display Windows 32 or 64 bit
...
Some games have problem in windows 64 bit
2014-01-15 22:02:47 +08:00
Unknown W. Brackets
1d302f9cab
Keep track of whether PSP_Init() was called.
...
This way settings are properly enabled/disabled in the menu.
2013-12-29 18:09:28 -08:00
Henrik Rydgård
ce378b231f
Delete CPU.cpp/h , cleanup
2013-12-30 00:11:29 +01:00
Henrik Rydgård
87f203a5b8
More include untangling
2013-12-29 23:44:35 +01:00
Henrik Rydgard
2eab4aa1bf
Play around with function replacement. Turned off by default of course.
2013-12-17 23:40:27 +01:00
Henrik Rydgard
291d25f43d
Only autosave the hashmap if enabled and not on mobile.
2013-12-17 12:30:56 +01:00
Henrik Rydgard
2140892074
Initial preparations for ability to replace game functions with custom implementations.
...
Also auto-saves hashmap additions and reapplies the hashmap on function
rename so that if you rename a function that exists in several copies
they will all be labelled.
Note that actual function replacement is not activated yet.
2013-12-17 12:27:20 +01:00
The Dax
ba31e18060
Perform savestate actions more intelligently.
2013-11-28 15:34:11 -05:00
The Dax
85e3a2dbfb
Make the model option ini-only.
...
Move PSP_MODEL_FAT and PSP_MODEL_SLIM to Config.h.
Default to a PSP Slim, and enable 64 megs of memory by default.
2013-11-28 14:37:10 -05:00
Unknown W. Brackets
fa7467f03d
Try to find the flash0 directory in headless.
2013-11-17 10:15:49 -08:00
Unknown W. Brackets
d6048dc646
Don't burn the cpu while idle in multithread.
2013-11-09 23:08:45 -08:00
Unknown W. Brackets
113146302b
Don't schedule a finish event when not running.
...
Otherwise it'll get it when it does run, and stop early.
2013-11-09 23:08:44 -08:00
Unknown W. Brackets
afafa5fcd6
Make sure the gpu thread has a chance to run.
...
If the scheduler puts it on the same core, it may not even do anything
before we check if the framebuffer is dirty, so SyncThread will quit since
it's not even running.
Instead, let's wait until it's at least done something.
2013-11-09 23:08:28 -08:00
Unknown W. Brackets
879060f008
Use a CORE_POWERUP state when starting.
...
Otherwise, we could startup in CORE_POWERDOWN in a second game, which is
confusing.
2013-11-09 23:07:52 -08:00
Unknown W. Brackets
712b582d26
Remove coreParam.disableG3Dlog and enableDebugging.
...
One was uninitialized, the other one unused.
2013-11-09 11:02:12 -08:00
Unknown W. Brackets
82706ef82d
Fix a crash if the gpu doesn't load.
...
E.g. for invalid files with multithreading enabled.
2013-11-06 07:49:32 -08:00
adrian17
0a086915f5
We don't need to reset the counter as it's already done in Reset()
2013-10-23 19:05:08 +02:00
Sacha
fafe4fc4f2
Fix multi-threading crashes on shutdown with Linux and Blackberry. Fixes issue #3133 -- thanks @unknown
2013-10-17 17:39:04 +10:00
The Dax
845a25e897
Whoops. Forgot to push this.
2013-10-15 03:41:11 -04:00
The Dax
b549a4e6e5
Assume g_Config.memCardDirectory will have a trailing slash. Make InitSysDirectories for Win32 only.
2013-10-15 03:41:10 -04:00
The Dax
6efd5b33f7
We don't really need DIRECTORY_FLASH0 or DIRECTORY_MEMSTICK.
2013-10-15 03:41:10 -04:00
The Dax
c7bdeb3084
Eliminate GetSysDirectories and instead provide a new function: GetSysDirectory.
...
On Win32, call InitSysDirectories before the emuthread starts just to be safe.
2013-10-15 03:41:10 -04:00
The Dax
22e7b64df3
Don't write files before creating the directory in the first place.
2013-10-14 17:28:27 -04:00
The Dax
45d6ab9d7b
Support more than just UTF-8.
2013-10-14 02:46:05 -04:00
The Dax
702c355cb6
Use a C++ version.
2013-10-14 02:24:02 -04:00
The Dax
81e7f1204c
Support unicode paths in installed.txt.
...
The only caveat is it has to be saved as a UTF-8 file or it won't work properly.
Also, make some variables const since they're not changed.
2013-10-14 00:12:17 -04:00
The Dax
54de8739f1
Fix critical bug with GetSysDirectories.
2013-10-13 19:30:07 -04:00
The Dax
823b6ee465
Clean up GetSysDirectories. File::GetExeDirectory is much cleaner.
2013-10-13 19:01:53 -04:00
The Dax
85f6d6bf0e
If the custom directory or the current directory is read-only, fall back on the Documents directory.
...
After that point(if Documents is somehow read-only), we'd be screwed anyway, so there's no need to bother checking it..
2013-10-13 18:22:04 -04:00
The Dax
d8a0adf50c
If installed.txt has a path in it, use that instead of the detected Documents directory.
2013-10-13 17:43:01 -04:00
The Dax
b3018eb37f
Allow Win32 to store its saves, config files, etc., elsewhere.
...
If installed.txt exists(or the executable directory is read-only), use the user's My Documents(XP) or Documents(7/8/8.1) directory to search for everything. If it doesn't, or we can't determine the directory for some reason, use the old behaviour.
2013-10-13 16:45:59 -04:00
Unknown W. Brackets
479a9801d4
Shutdown issues: the legend continues.
...
If the gpu was slow (softgpu for example), it might still be accessing
memory. Need to let it wake, and ignoring coreState too.
2013-10-13 09:35:02 -07:00
Henrik Rydgård
cdba174ab7
Merge pull request #4148 from unknownbrackets/config-files
...
Allow config files and fonts to be on the memstick
2013-10-13 04:01:01 -07:00
Unknown W. Brackets
b54e557d19
Actually, let's not wait at all in Core_Stop().
...
It just triggers the action on the other thread.
2013-10-12 23:20:27 -07:00
Unknown W. Brackets
af2ccbb9da
Rename flashDirectory to flash0Directory.
2013-10-12 16:08:39 -07:00
Unknown W. Brackets
a79b168acc
Make sure the cpu thread ends on Core_Stop().
...
Sometimes it didn't, which was just a bit confusing.
2013-10-12 10:55:31 -07:00
Unknown W. Brackets
90c49befd4
Fix a possible race on shutdown.
2013-10-12 02:08:00 -07:00
Unknown W. Brackets
093255a895
Avoid an unlikely buffer overflow.
2013-10-05 11:13:40 -07:00
Unknown W. Brackets
086294b495
Listen for shutdown in thread loops.
...
This way we don't need to use wait_for(), much better.
Also because there are slightly more correct cond vars on win32.
2013-09-28 00:45:54 -07:00
Unknown W. Brackets
4b9056fa02
Shutdown cleanly even when GE debugger is paused.
2013-09-28 00:32:45 -07:00
Unknown W. Brackets
418d6c1e83
Reset the game when loading a state fails.
...
This way it doesn't crash.
2013-09-14 21:19:10 -07:00
Unknown W. Brackets
2ac5bcff1f
Process savestates during single stepping.
...
This way we can handle them on the same thread, without weird delays.
2013-09-14 18:43:23 -07:00