Commit graph

54 commits

Author SHA1 Message Date
wally4000
057d301b11 Remove BaseDir extern and replace with setBasePath function 2024-08-02 15:15:58 +10:00
wally4000
4a35201f22 Specify if a variable is unused to silence compiler. 2024-06-20 12:24:05 +10:00
Wally4000
8f83e2bc04 Modern compilers can deal with __fastcall 2023-10-23 13:05:33 +11:00
Wally4000
895e8910d9 Remove BuildOptions and clean up macros 2023-10-23 12:58:37 +11:00
Wally4000
c7bed4c5a5 Pass filename by reference to avoid copies 2023-04-29 12:21:30 +10:00
Wally
9fe0d7666f Use modern alignas specifier 2022-06-19 13:55:08 +10:00
Wally4000
a69ee0a3f3 More std::array magic 2022-05-03 12:50:08 +10:00
Wally4000
b0185d6441 Begin introducing std::filesystem more 2022-04-19 20:22:58 +10:00
Wally4000
eadc1b3758 move from typedef to modern using declaration 2021-10-18 18:58:14 +11:00
Wally4000
15e3e2a1d0 Update to the Bazel Directory Structure.. 2020-08-22 18:42:41 +10:00
=
1511baa25e Fix up paths in headers 2020-05-27 19:20:52 +10:00
z2442
275aacd212 more nullptr updates 2019-05-03 21:09:20 -04:00
Ben Slater
eb134c1262 Moved some more asserts and profiling stuff out of the way to stop the compiler whinging.
Start restructuring audio plugin.. (Needs a diagram now)
2019-05-02 20:46:56 +10: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
0111275f23 Move a lot of debug stuff out of Release Build 2019-01-21 14:26:00 +11:00
salvy
e691015226 [!] Fixed and optimized IS_SEG_8000 (Corn)
[+] Glover needs rounding mode (PSP)
[!} Fixed crash in Paper Mario when Mem opt is enabled
[!} Removed unused entry from PatchSymbol struct
[-] Remove DAEDALUS_IS_LEGACY (all dead code is removed by the compiler anyways)
2013-11-07 00:19:23 -08:00
salvy
fa52955863 [!] All libraries for W32 build are now statically linked
[!] Do not use fast call for W32, anyways R4300_CALL_TYPE ensures dynarec can use fast call
[!] Removed PSP project files from MSVC11 solution, please use devkitpro.bat or minpspw.bat for compiling the PSP build
[+] Now is much easier to compile W32 build, third party libraries can be built and linked in the same solution

NOTE: These changes are only for MSVC11 project, I'll update the other project files eventually
2013-08-19 08:28:31 +01:00
Paul Holden
49a06ed319 [~] Make header guards consistently use FULL_PATH_TO_FILE_H_, with script 2013-06-04 22:02:30 +01:00
strmnnrmn
ffcbe649b1 [~] stdafx cleanup: Include stdio.h and stdlib.h where needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1703 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:53:29 +00:00
strmnnrmn
93ceb18cd7 [~] Give CPU_Reset and CPU_Finalise more accurate names
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1603 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-23 22:32:10 +00:00
strmnnrmn
3ff264bb34 [+] Add a callback interface to the vbl handler. Move HandleSystemKeys to SysGL
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1587 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-16 12:04:07 +00:00
strmnnrmn
8bd453b524 [+] Update the savestate loading logic to handle switching roms if necessary. Also, made the ESC key quit out.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1578 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 09:25:55 +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
2862ae330a [-] W32 CPU thread stuff isn't needed any mode
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1557 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 09:23:25 +00:00
salvy
0801ac4ed2 [!] Moved W32 audio thread back to main thread (was causing various issues, it would be nice to get it working though)
[!] Fixed issue in pixel shader that was affecting my video card (Thx StrmnNrmn)
[!] Copy n64.psh to build dir (W32)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1543 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-08 01:43:40 +00:00
Corn
7c69ec021a [!] Fixed and enabled LWL/LWR instructions in DynaRec
[!] WIP on DDIV(U) instructions

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1032 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-19 20:54:29 +00:00
strmnnrmn
fd89421ccb Replace a couple of while(1) with while(CPU_KeepRunning())
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1010 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 19:44:41 +00:00
strmnnrmn
8b61eecc9c Merge some more trivial CPU.h changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@985 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:59:20 +00:00
strmnnrmn
8e71074ed0 CPU_DynarecEnable is needed for the W32 build debugger
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@984 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:59:15 +00:00
strmnnrmn
890e03bb39 eventQueueLocked was being defined in multiple source files. It probably wasn't working as intended\!
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@982 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:59:06 +00:00
strmnnrmn
231816499b CPU_Step/CPU_Skip are still used on non-PSP builds
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@981 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:59:02 +00:00
strmnnrmn
4be3238748 [~] Tidy CPU.h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@960 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 15:03:10 +00:00
Corn
be3e511061 [!] Some cleanup and optimization in DynaRecStubs.S
[!] fixed CRLF on additional files

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@906 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-30 19:47:24 +00:00
salvy
bf5e76d078 [!] Optimized CPU_FetchInstruction
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@898 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-25 07:21:38 +00:00
Corn
c0b2ff0c69 [!] Power Puff Girls is now playable(textures are mostly fixed, use video rate match enabled)
[!] No need to use simulate doubles in Conker/Tom&Jerry/Mario Party Draft mini game/Earth Worm Jim/Power Puff Girls
[!] Fixed a subtle bug in MOV.D (both in interpreter and dynarec) that caused problems in Conker(and possibly other games)
[!] Added direct access to doubles in the emulated registers (FPUD)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@888 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-11 11:39:06 +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
strmnnrmn
ba29dea5cc Fix line endings - mostly LF with a dash of CRLF
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@851 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:44 +00:00
salvy
4536c5c170 By StrmnNrmn : …
Multi-platform:

* Reintroduced a bunch of DAEDALUS_PSP ifdefs.
* Reintroduced a load of Win32/OSX code.
* R4300: To reduce some of the DAEDALUS_PSP ifdefs in R4300.cpp, added some
  defines for R4300_IsNan etc.
* R4300: f32_to_s32_trunc etc. I think we should keep these as they provide some
  abstraction between PSP/OSX/W32 etc and remove tons of ifdefs elsewhere.
  I think I updated all of these correctly. Please check!
* Math/Math.h: we should provide a consistent interface here. e.g. rather than
  exposing pspFpuSqrt(), we should have Sqrt() that's #defined (or a wrapper
  function) to the most appropriate implementation for the platform.

Small improvements:

* Added a few DBGConsole_Msg lines to track down boot errors.
* CPU: gLastPC/gLastAddress were defined as static in CPU.h - that means they'd
  be introduced into all compilation units that pulled in that header. Redefined
  as extern.
* NativeTexture.h - GetScaleX/Y can just return an f32 (no need for reference)
* ROMFileCache: Just declare AddressToChunkMapIndex/GetChunkStartAddress as
  inline functions in the .cpp file.

Tidying:

* Path: Moved IO::Path::Tidy to String.h (it's not really a Path function).
* Lots of whitespace fixes (git doesn't like whitespace at the end of lines)
* Started nuking lots of 'tractor lines' (//*********************)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@840 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:07:03 +00:00
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
salvy
d947aa6315 [!] Simplified and optimized MatrixFromN64FixedPoint
[!] [OSHLE] Changed to 32bit when storing to a0,1,2,4 regs

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@817 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-25 22:58:37 +00:00
Corn
4502ef5f4f [!] It is now possible to map emulated CPU/FPUregs to psp scratchpad
[!] Debug_console is now possible to compile without silent flag
[!] Adjustments to dynarec/traces parameters

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@738 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-24 20:30:44 +00:00
salvy
fbcfff31df [~] Fixed debug build
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@736 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-18 08:02:06 +00:00
Corn
585696e11f [!] Some cleanup after 64bit to 32bit register changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@735 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-17 19:05:23 +00:00
salvy
cfb4c3a995 [!] FPU reg is now 32bit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@734 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-17 14:53:35 +00:00
salvy
36f553f465 [!] FPUControl is now 32bit
[!] Some small optimizations in OSHLE

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@733 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-17 14:37:15 +00:00
Corn
9f6a16deb7 [!] CPUControl is now 32bit (from 64bit)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@730 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-16 09:51:56 +00:00
salvy
d52b7793bd [!] Optimized HLE osSendMesg/osRecvMesg patches (saved 145 ops, yay QuickRead/Write)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@663 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-08 06:17:42 +00:00
salvy
ffe6238764 [!] Code clean ups, mostly made debug only code which is obsolete in release
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@642 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-13 07:40:03 +00:00
Salvy
e41581a964 [!] Optimized CPU_SetCompare
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@339 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-05 02:05:53 +00:00