Commit graph

133 commits

Author SHA1 Message Date
strmnnrmn
d386e7fbd1 [~] Change some more szFilePath -> filepath
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1740 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-06-01 08:40:27 +00: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
16cb89183a [~] stdafx cleanup: Include string.h where needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1701 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:47 +00:00
strmnnrmn
3757a27a46 [~] stdafx cleanup: PSP should compile without DaedalusTypes.h in stdafx.h now
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1699 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:22 +00:00
strmnnrmn
3d4a0c0e95 [~] stdafx cleanup: Move utility macros to Utility/Macros.h and directly include where needed.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1691 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:05:35 +00:00
strmnnrmn
b05c813379 [~] Huge filename cleanup. Use IO::Filename rather than char [MAX_PATH] or char [MAX_PATH+1]. Add an IO::Path::Assign. Use IO::Path::Assign/Combine rather than strcpy/strcat/snprintf. Remove MAX_PATH (everything should use the constant in IO.h if required, then we can make this platform specific)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1686 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:04:55 +00:00
strmnnrmn
fb537ad57f [~] kFoo for constants, FOO_UPPER_CAPS for preprocessor
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1386 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 12:52:31 +00:00
strmnnrmn
488d105cc4 [~] Move some RDP state to RDPStateManager. RDP.cpp is pretty defunct now...might make more sense to rename RDPStateManager to RDP and reduce typing :)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1292 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:52 +00:00
strmnnrmn
9b55ada0a7 [~] GetSystemMemoryUsage and GetVideoMemoryUsage are unused.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1266 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:50 +00:00
strmnnrmn
4c67c3343f [~] Add a FIXME to do with writing out NativePfCI44 textures as pngs. Haven't tested this, but I neede to make a similar fix for OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1171 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-05 20:27:09 +00:00
salvy
c00e93dd8d [~] Clean up unnecessary headers and lib
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1164 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-04 18:47:00 +00:00
salvy
444a12c3ce [!] Removed checks to avoid necessary viewport update from BeginScene (Is only called once per frame andyways)
[!] Enable memory access opt for LB (Mario 64 doesn't crash anymore with it, still risky, small speed up, let me know if any game stops working with mem opt option)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1157 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 22:20:47 +00:00
strmnnrmn
9a77dad8a8 [*] Rename PSPRenderer to BaseRenderer. (PSPRenderer will return, but just with PSP specific bits in it)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1108 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 15:46:32 +00:00
strmnnrmn
7422eb6f6c [*] Move PixelFormatPSP from SysPSP to common Graphics, rename to NativePixelFormat.h. Remove some of the namespaces to make use of native/n64 pixelformats more obvious when reading the code.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1106 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 14:34:51 +00:00
strmnnrmn
cf57a2b8d7 [~] Rename ClearWithColour to ClearColBufferAndDepth. Pass a c32 for consistency with ClearColBuffer, and remove the depth arg (always 0)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1092 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:49 +00:00
strmnnrmn
9ec164f1bb [~] Implement ViewportType on OSX. Make const.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1091 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:39 +00:00
strmnnrmn
de11411cbc [~] Tidy up GraphicsContext Clear functions - the overloading was a bit confusing so I renamed them. Clear(bool,bool) only ever took (true,true) as arguments, so just call it ClearToBlack and simplify the code a bit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1089 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:22 +00:00
strmnnrmn
2cd54e7536 [~] GraphicsContext UpdateFrame return was unused. Rename GetBufferSize to GetScreenSize, and use to avoid exposing SCR_WIDTH/SCR_HEIGHT
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1077 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:29 +00:00
strmnnrmn
7ea2b6a024 [~] Tidy CGraphicsContext::Create for PSP - impl is in .cpp file so don't bother with protected members and friends
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1076 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:19 +00:00
strmnnrmn
c2f01ec6b4 [~] Tidy CGraphicsContext::Create for PSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1075 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:12 +00:00
strmnnrmn
ea88e30f58 [~] Add a GraphicsContext.cpp for OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1074 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:05 +00:00
strmnnrmn
c110a77f56 [!] Fix d% instead of %d in NativeTexturePSP.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1037 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 08:27:58 +00:00
strmnnrmn
319601baa1 [~] Encapsulate some display list debugger state
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1021 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 21:00:03 +00:00
strmnnrmn
a629bb2803 [~] Move some DL debugging code (printf style, not the interactive debugger) to a separate DLDebug.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1019 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 21:27:37 +00:00
strmnnrmn
8d02eaa1e8 [~] Fix inconsistent line endings (no functional changes)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@913 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-02 12:12:00 +00:00
strmnnrmn
b032afb3f0 Merge some whitespace fixes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@909 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-02 12:11:36 +00:00
salvy
d2de763192 [!] Used a temporal buffer for storing screenshots for savestates
[!] Take savestate screenshot after the next frame rather than storing it in a buffer
[!] Optimized Patch_osCreateThread


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@872 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-21 21:02:39 +00:00
Corn
e3a7eb552b [+] Added storing and displaying previews to Save States (Uses a 128kByte buffer)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@871 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-21 17:38:31 +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
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
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
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
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
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
Salvy
7797f48dfb [!] Fixed typo in hash in all translations
[!] Only try to load language files once when system inits
[!] Fixed crash when number of language files changed
[+] Conserve the order of languages, regardless if their number was changed
[!] Increase ROM cache size for PHAT from 2MB to 4MB

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@616 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-17 20:47:22 +00:00
Salvy
ee3e1c854b [~] More clean ups to ROMFileMemory
[!] Made more robust when Allocating and freeing ROM Cache/Buffer
[+] Create memory pool for PHAT as well to avoid fragmentation and keep things neat

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@612 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-11 22:09:03 +00:00
Salvy
89b4f4bf4c [!] Fixed PHAT compatibility with recent changes
[!] Made conditions when using large Rom cache or Rom buffer, more safely to avoid any unwelcome bugs ;)
[!] Some clean ups 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@610 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-08 22:54:44 +00:00
Corn
95ee660a64 [+] Add 1.5MB of volatile RAM to the memory pool for textures (SLIM->5.5MB and PHAT->3.5MB)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@609 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-08 19:32:03 +00:00
Salvy
61b047c560 [!] Clean ups and fixes to previous commit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@608 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-08 01:19:26 +00:00
Salvy
f5e0eff5b6 [!] Allocate the entire extra memory of PSP Slim and newer models (32mbs in total)
[+] Added a new option (Found in Global Settings) which allows you to use either Rom cache (default, slower but faster boot time) or Rom Buffer (faster, but slower boot time, since it has to buffer the entire Rom to the Ram, Note: Any Rom biger than 32mbs will fall back to use Rom Cache)
[!] Don't allocate RomCache if we load the whole ROM (Rom Buffer)
[!] Don't allocate memory for VideoManager (Was used to fall back if running out of VRAM, happens very rare [about 3 known games, we could use the volatile memory for this eventually?] )

All of these is a nop for PSP Phat.
Note: This is a WIP!!!!

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@607 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-07 01:42:32 +00:00
Salvy
335f91aa26 [!] Fixed Min/Max text overlapping in Adjust DeadZone Screen
[!] Typo from last commit that broke time/bat stats display_height
[!] Updated Spanish translation (Ricot)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@593 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-22 00:11:24 +00:00
Salvy
371ef273f5 [!] Fix translated text height is not calculated correctly when breaking lines
[!] Load translations to volatile memory and only unload if using a different language

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@589 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-19 18:53:27 +00:00
Salvy
e8e47d4f74 [!] Fixed memory leak in cheat feature
[!] Fixed translations switching to default when accessing pause menu (thnx Ricot for reporting it)
[!] Fixed language list being inconsistent (thnx Ricot for reporting it)
[!] One more fix when wrapping translated text (thnx pzu for reporting it)
[!] Simplify getting language name
[!] No longer register a sysevent handler when using volatile memory (Was breaking exception handler, also volatile memory now works in signed builds)
[!] Use scePowerLock to disable power switch and thus "disable" suspend mode (needed when using volatile memory)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@585 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-19 01:16:27 +00:00
Salvy
51aa042896 [!] Fixed ancient regression that was breaking most unicode strings
[!] Translations will fall back to use intrafont's manual linebreaking feature (our auto-linebreaking can't handle unicodes)
[+] Handle special chars as newline when parsing language files (Needed by intrafont's linebreaking)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@584 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-18 02:04:49 +00:00