Commit graph

242 commits

Author SHA1 Message Date
strmnnrmn
beb5741242 [~] Rearrange and remove a couple of lines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1426 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:47:26 +00:00
strmnnrmn
103b907219 [!] Fix memcpy_byteswap32 on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1425 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:43:33 +00:00
strmnnrmn
f08a55d772 [~] Add a SplitAt function (single split) and operator== for ConstStringRef
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1418 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:08:52 +00:00
strmnnrmn
e5c352b545 [~] Add a Split function, and move Tidy to a new StringUtil file
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1415 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:08:31 +00:00
strmnnrmn
bd426000d9 [~] OSX FindFileNext - ignore ., .. etc.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1405 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:07:16 +00:00
salvy
9ab765a677 [!] Optimizations to accurate tmem
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1399 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 21:10:55 +00:00
strmnnrmn
701263063b [~] Rename CritSect to Mutex
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1394 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:53:35 +00:00
strmnnrmn
a8a533cb98 [+] Add an abstract DataSink class. Derived implementations can write to file, network etc
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1387 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:52:38 +00:00
salvy
009f06aa2e [!] Fixed fastRand (sorry, didn't mean to commit this in the first place!)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1295 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-14 18:13:03 +00:00
strmnnrmn
207ea0fb06 [~] On all but PSP, default to updating textures every frame
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1280 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:26 +00:00
strmnnrmn
3a399c2bc4 [~] Tidy Preferences.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1279 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:19 +00:00
strmnnrmn
76edca4b50 [~] Remove the gBufferLenMs global
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1243 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-10 19:00:36 +00:00
strmnnrmn
80b2be6c34 [+] Add a ToMilliseconds convenience function
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1232 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:02:15 +00:00
strmnnrmn
c98e0403af [~] Enable audio by default on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1231 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:02:04 +00:00
strmnnrmn
67a36ca372 [~] Add the ability to call to an auxillary sync function and tidy up FramerateLimiter a bit.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1230 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:01:57 +00:00
strmnnrmn
7ad92840cd [~] WaitForThreadTermination -> JoinThread, and tidy
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1227 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:01:31 +00:00
strmnnrmn
85ff566e35 [~] INVALID_THREAD_HANDLE -> kInvalidThreadHandle (I confuse with Win32 INVALID_HANDLE_VALUE)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1224 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:01:04 +00:00
strmnnrmn
1a1e20bcf8 [~] Implement CritSect for OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1223 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:00:52 +00:00
salvy
56be0ba2cc [!] Some clean ups and commenting
[~] Removed offscreen check, only conker needs the format check

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1180 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-06 03:18:18 +00:00
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