Commit graph

273 commits

Author SHA1 Message Date
strmnnrmn
b539e65a37 [~] Use __PRETTY_FUNCTION__ in the Singleton::Get assert, so we can see the class name that is being called\!
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1081 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:53:00 +00:00
salvy
b737d76226 [~] Fixed bug in R4300_Cop1_D_CVT_S when sim doubles is disabled
[~] Fixed cheat codes not being enabled when forced from roms.ini


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1057 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-22 19:51:25 +00:00
salvy
80c071118c [!] Compile fixes for x86 platform (there's still a few errors left but getting closer)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1039 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 17:30:53 +00:00
strmnnrmn
811a8337f5 [~] Add a comment to IMemoryHeap
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1009 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 19:44:36 +00:00
strmnnrmn
0010d3e06d [~] Fix assert
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@990 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 16:59:42 +00:00
strmnnrmn
b4ce66e376 Reintroduce some cross-platform code
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@969 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 15:03:48 +00:00
Corn
fd472f60df [!] PspFastRand() is now just FastRand().
[!] Make sure to invalidate regs when exiting a fragment.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@937 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 21:59:04 +00:00
strmnnrmn
e98b883031 [~] Merge some changes to make ZlibWrapper work with newer versions of zlib (as used by OSX etc)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@936 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:50:11 +00:00
strmnnrmn
4b0b926e1a [~] Add a FIXME: this assert in MemoryHeap.cpp looks wrong
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@931 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:27 +00:00
strmnnrmn
7b66c40d61 Merge some changes to DaedalusTypes.h - keep the big endian struct ordering around
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@930 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:23 +00:00
strmnnrmn
bae4242007 [~] Merge some framerate limiter changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@928 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:14 +00:00
strmnnrmn
030378e583 [~] Remove unused header
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@926 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:06 +00:00
strmnnrmn
a9074c5714 [~] OSX doesn't (yet) define InputManager::GetConfigurationName etc
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@905 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-27 20:44:15 +00:00
strmnnrmn
6d36f77ca0 [~] Define memcpy_swizzle first - it's a bit tidier
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@903 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-27 19:31:58 +00:00
strmnnrmn
422823e52e [~] FastMemcpy.h was a bit broken for big-endian targets. fast_memcpy_swizzle correctly just called memcpy, but memcpy_swizzle ended up incorrectly byteswapping. I've renamed the underlying implementations to _byteswap (which always byteswap, regardless of enianness) and make the _swizzle functions correctly select between memcpy/memcpy_byteswap as appropriate. I think it would probably be clearer to rename memcpy_swizzle to n64_memcpy, or something like that?
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@902 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-27 19:31:53 +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
Corn
cede927eb8 [!] small improvement to memcpy and some clean up
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@881 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-02 12:03:50 +00:00
Corn
31bbfaae18 [!] Some further refinements to Fastmemcopy
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@879 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-30 08:28:30 +00:00
Corn
92c451823f [!] FastMemcpy now uses 32bit reads also for unaligned transfers.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@878 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-28 13:32:57 +00:00
salvy
d0f03d3de5 [!] ~50% speed up of unaligned copies in fast memcpy swizzle (Noticed 99% of the time we are atleast word aligned)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@877 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-26 03:46:29 +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
salvy
5fb82a2cc6 [!] Fixed async audio broken (VFPU and MediaEngine don't mix!)
[!] Made fast memcpy truly platform independent
[~] Some more fixes and improvements to memcpy_vfpu_swizzle from last commit

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@862 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 02:23:32 +00:00
Corn
3b94307914 [!] Fixed normal and swizzled versions of VFPU memcpy
[+] Enabled VFPU memcpy in PSPrenderer and DMA 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@856 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 18:37:03 +00:00
strmnnrmn
74b132f9f0 [~] Move memcpy_cpu_LE to a platform-independent Source/Utility/FastMemcpy.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@855 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 15:40:15 +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
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
strmnnrmn
8ef65c6894 Fix mixed Windows/Unix line endings in a bunch of files. Add missing newlines before EOLs
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@849 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:20 +00:00
strmnnrmn
3a37f8ac57 Make FastMemcpy a bit more platform independenty and move to the main Utility dir. I removed the timing test and wrapped it up in a function (what it loses from the function call, it gains from being able to inline GetCurrent)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@844 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:36 +00:00
salvy
35e55f149e [-] Removed cheat frequency option (cheats no longer cause much overhead anyways)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@842 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 21:25:35 +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
e1e167d8db Fix compressed rom support (still disabled in psp build).
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@839 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-04 09:32:21 +00:00
strmnnrmn
03ab67a298 Move IO::Path::Tidy to String.h - it's not really anything to do with paths
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@837 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:51:11 +00:00
strmnnrmn
7008e95d44 Fix inconsistent line endings in Translate.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@836 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:51:05 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +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
Corn
81a3410b43 [!] Added Fullscreen HD mode(scales 3D to proper 16:9 format. Note: don't work on all ROMs yet)
[!] fixed typo/error in Makefile 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@769 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-15 13:02:56 +00:00
salvy
4bd5078b16 [!] Increase both MAX_VERTICES and MAX_CLIPPED_VERTS (Fixes Flying Dragon crashing)
[!] Fixed debug build
[~] Silenced some annoying asserts

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@756 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 19:37:56 +00:00
salvy
9ff9d265a2 [-] Bye bye murmur2 hash
[!] Made slow memory access compatible with recent changes
[+] Added DKR64 hack which makes DK64 boot (This is disabled since we ignore IMEM transfers for speed which is required for DK64)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@754 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:13:10 +00:00
Corn
bc7a7177a2 [!] Added showing handled speed hacks (with OP code) in dynarec (undef DAEDALUS_SILENT)
[!] moved some code under DAEDALUS_SILENT to DAEDALUS_DEBUG_CONSOLE and DAEDALUS_DEBUG_DISPLAYLIST

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@737 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-24 13:40:26 +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
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
Corn
220eda6b60 [!] Dynarec: reimplemented LWL & LWR OPs with much simpler code (faster)
[!] Dynarec: implemented SWL & SWR OPs
[!] Framelimiter now averages with 4 frames (converge faster)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@721 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-12 10:16:32 +00:00
Corn
196a2dcaca [!] Reworked exception/BSOD information screen and log
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@720 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-11 16:42:22 +00:00
Corn
d5a8ab79e8 [!] Fixed bug that never enabled LoopOpt. (LoopOpt still only works in a few games like SM64)
[!] Cleaned up BSOD text dump (shows when registers are pointing in RDRAM)
[+] added EXT & INS in disassembly and fixed MSB/LSB order

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@718 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-10 19:01:08 +00:00
Corn
af43f1eace [+] New Speed up option: Dynarec Doubles Optimizations (advanced menu) when enabled dynarec compiles code to simulate doubles with floats
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@692 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-06-04 18:50:57 +00:00
salvy
cf8f01eaca [+] Added Polish translation by malymi45
[!] Removed hacks used to correct string length of translated strings 
[!] Avoid computing strlen twice when translating strings

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@673 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-15 18:47:19 +00:00
salvy
8b72c5085d [!] Removed SimulateDoubleDisabled option (was replaced with specific game hacks)
[!] Tyde R4300_Cop1_CTC1 (saves 7 ops)
[!] Made all instances of FPUControl[31] to 32bit (Compiler was already optimizing it off anyways)
[!] Fixed languages not being unloaded properly when switching to default language
[!] Tyde when loading languages

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@645 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-18 03:33:42 +00:00
Corn
3f1e612b52 [-] Reverted LWC1/SWC1 FPU OPs (caused to many issues need more work)
[!] Reorganized Build Config flags

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@643 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-13 13:12:34 +00:00