Commit Graph

117 Commits

Author SHA1 Message Date
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