Commit graph

86 commits

Author SHA1 Message Date
wally4000
fd22ce09e0 Shuffle some files around 2024-08-05 21:15:57 +10:00
wally4000
9310ae0788 add cstring in appropriate files 2024-07-01 10:48:50 +10:00
Howard Su
5c0dd83555
Merge branch 'master' into pspui 2023-12-08 09:22:48 +08:00
Howard Su
734ed8788d Make Win32 build on Release 2023-12-07 22:56:38 +08:00
Howard Su
fcc875fb46 Fix warnings, still left some 2023-12-06 08:52:37 +08:00
Howard Su
e2f3183177
Fix release build (#46)
* Perf critial structures needs to be C-array instead of c++ array

* Temp fix only disable optimization in Core

* fix a buffer overflow

* Fix build on Linux
2023-12-05 09:02:33 +08:00
Wally4000
895e8910d9 Remove BuildOptions and clean up macros 2023-10-23 12:58:37 +11:00
Wally4000
a69ee0a3f3 More std::array magic 2022-05-03 12:50:08 +10:00
Wally4000
3fec82b04d Remove stdafx.h for consistency 2022-03-22 18:06:17 +11:00
Wally4000
6f73fd820d Use a template for make_uncached_ptr and clean up 2021-12-24 15:05:18 +11:00
Wally4000
15e3e2a1d0 Update to the Bazel Directory Structure.. 2020-08-22 18:42:41 +10:00
Carlos R
703b2663d4 Fixes for flash ram and rom read
[*] Removed redundant check for flashram read/write, actually this was incorrect for flashram read..
[*] Added return for failed DMA flashram transfers
[*] Set correct save type for Derby Stallion
[*] Set flashram type correctly, fixes saving for Derby Stallion
[*] Added check to prevent reading rom from out of range
2020-06-09 22:36:05 -07:00
=
1511baa25e Fix up paths in headers 2020-05-27 19:20:52 +10:00
Carlos R
0a1581d4e5 Fixes for MemoryUpdateSPStatus
*Make code more readable
*Fix bug where we weren't clearing the SP_STATUS_BROKE bit and ensure the RSP tasks are executed when clearing this bit
2020-05-26 22:02:37 -07:00
=
1c342d8c8f Revert all initialiser list variables. 2020-05-04 12:24:21 +10:00
Wally
2d7157e5a9 Got SDL2 build compiling again.. Not sure if it works yet, crashes KDE on my VM 2019-05-27 13:00:23 +10:00
z2442
275aacd212 more nullptr updates 2019-05-03 21:09:20 -04:00
Wally
d268338d6c Move debug stuff from release / Move to C11 inits in Core / Add Motos fancy new icons 2019-03-23 17:53:26 +09:00
Ben Slater
c562b76641 *Clean build from StrmnNrmns repo 2019-02-27 17:04:51 +11:00
Wally
8bc2012f0e Fix 64 bit support from StrmnNrmns Bazel branch 2019-02-04 13:52:39 +11:00
Wally
0111275f23 Move a lot of debug stuff out of Release Build 2019-01-21 14:26:00 +11:00
Paul Holden
067a594a9f [~] Move ConfigOptions.{h,cpp} to Config/ and tidy header include order. 2013-06-04 22:02:31 +01:00
strmnnrmn
1ac2f80e02 [~] Remove some unused #includes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1733 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-06-01 08:39:49 +00:00
salvy
af19d1a3b3 [+] WIP: Implemented CPU framebuffer, used by demos, Donald Duck, Rayman 2 The Great Escape, and probably other games (currently W32/OSX only)
[-] Reverted small constant opt from previous commit, is not worth breaking when EPak isn't used

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1675 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-14 20:11:42 +00:00
salvy
7277157047 [!} Constant optimizations for CFragment::Execute (this is a very hot function!, saves 4 ops)
[~] Keep bitfields for texrect, since compiler generates much better asm when it converts int to float (~30 ops)
[!] Clean ups to gu oshle patches, also optimize when reading from stack since is always physical memory

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1674 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-11 06:37:21 +00:00
salvy
176f84db75 [~] Very minor typo from previous commit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1660 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-03 07:24:11 +00:00
salvy
80de2072d5 [+] Implemented task freeze (DK64 gets in game now!, intro works fine too, in game has core issues though)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1659 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-03 06:56:45 +00:00
strmnnrmn
9821e04675 [~] Update DAEDALUS_ASSERT and other macros that are compiled out of release builds so that they 'consume' their arguments without generating any code. This removed the need for use() in a lot of places.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1655 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:37:17 +00:00
strmnnrmn
ef92090372 [~] gRSPHLEActive is always false now - remove it
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1651 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:36:52 +00:00
strmnnrmn
5ec52aef42 [~] Move InternalRead gubbins to Memory_ReadInternal.inl
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1625 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:03:16 +00:00
strmnnrmn
4148696ba0 [~] Prefix InternalReadFastTable so that we can see it's a global
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1624 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:03:09 +00:00
strmnnrmn
f11ef611d9 [~] We're probably better off just removing these ifdefs and letting the compiler do its job (PSP .prx file is unchanged with this, so it's unlikely ifdefing stuff out was actually doing anything
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1623 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:03:02 +00:00
strmnnrmn
5e9595e0ba [!] DAEDALUS_ENABLE_ASSERTS was typo-ed, so the code was never run in debug :(
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1622 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:02:55 +00:00
strmnnrmn
2061a31c6e [~] Tidy Memory.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1621 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:02:49 +00:00
strmnnrmn
3bdc551790 [~] Remove DAEDALUS_ALIGN_REGISTERS. This was meant to be an optimisation for the PC, but it was disabled in Release anyway. I'm not sure it would make much difference these days in any case
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1620 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 13:02:43 +00:00
strmnnrmn
7a453bb916 [+] System_Open init steps should be able to fail - e.g. if the specified file can't be found.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1570 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 09:25:05 +00:00
strmnnrmn
60991d6c79 [~] Compile fixes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1495 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 09:45:54 +00:00
salvy
e571e5fca2 [!] Finally fixed SSV cut scenes and glitch when walking by the windshield of the ship \o/
[~] Reverted changes to rom write support, no need to over think it since it works fine as it is

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1210 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 07:43:45 +00:00
salvy
edbee2b2c8 [!] Opps forgot this
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1209 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 03:23:32 +00:00
salvy
4035d2170a [!] Simplified write Rom support, use unused memory buffer to store value.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1208 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 03:10:31 +00:00
salvy
a03e0afab6 [-] Removed mapping ROM region if the address is fixed (Reads to Rom are very rare, any speedup was unlikely, also was breaking when games write to ROM ex Toy Story 2)
[~] Some clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1207 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-08 23:55:28 +00:00
salvy
6f304819d1 [!] x86 platform compiles now
[!] Fixed virtual alloc (x86)
[-] Removed debug COP2 code

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1040 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 20:39:26 +00:00
strmnnrmn
e097976442 [~] Reintroduce some code in Memory.cpp for W32 (I'll try to factor this a bit more nicely once I've finished merging)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@958 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 15:03:02 +00:00
salvy
9ea723a616 [~] Some misc changes
[+] Init/reset FlashRam
[!] Simplified ReadInvalid to take advantage of the movn instruction
[!] Need to check for interrupts when writing to DPC_END_REG

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@896 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-24 06:14:30 +00:00
salvy
57389bd1c2 [!} Some small optimisations in Patch___osDispatchThread
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@883 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-04 21:23:52 +00:00
salvy
2bc64156e6 [!] Some clean ups
[!] Made guRotateF and volatile memory platform independent 
[!] Check for invalid reads/writes to PIF

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@870 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-20 21:50:27 +00:00
Corn
49d6192e46 [!] Freed usage of T0/T1 registers in Dynarec. temp regs are now A0/A1 & V0/V1 (A2/A3 are still not freed but are unused)
[!] Use of two scratch registers in the CPU register struct for easy storage of temp variables (mainly used in Dynarecstubs.S)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@869 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-16 16:36:37 +00:00
salvy
f3a82901af [!] Make sure FlashRead/Write regions are valid
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@868 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-15 01:34:15 +00:00
salvy
bf7f70dd41 [!] Fixed build not compiling
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@864 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 21:13:44 +00:00
strmnnrmn
0e698c385d Fix all the remaining mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@852 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:21:04 +00:00