Commit graph

62 commits

Author SHA1 Message Date
Wally4000
b9ce367826 Begin internal path stuff with std::filesystem 2021-10-18 22:29:23 +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
=
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
z2442
d90bac8ef5 clean up narrowing errors 2019-03-23 20:24:40 -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
Ben Slater
99aad0b79d Started work on 64-bit / Linux support 2019-01-30 22:15:17 +11:00
salvy
a3aafa8a89 [!] Fixed activator codes 2013-07-17 00:51:57 -07:00
Paul Holden
067a594a9f [~] Move ConfigOptions.{h,cpp} to Config/ and tidy header include order. 2013-06-04 22:02:31 +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
4e78d7d970 [~] stdafx cleanup: Include stdlib.h where needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1702 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:59 +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
6435d4dc36 [~] stdafx.h cleanup - move gDaedalusExePath to System/Paths.h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1684 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:04:31 +00:00
salvy
a4b93c094a [!] (PSP) Use more complex blit for large textures (fixes Star Soldier and V-Rally)
[!] Disable DoubleDIsplay for Star Soldier (fixes crash in main menu), something fishy is there that is overflowing our PSP dlist
[!] Re-enable DoubleDisplay for DK64, it was crashing before since we weren't freezing the task,, and thus a bad dlist.
[+] Added check for compressed cheats to avoid any overflow.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1678 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-17 05:35:10 +00:00
salvy
00427145be [!] Fixed compressed cheat codes
[!] Optimized abit more CheatCodes_Apply (I think this as fast as it can get)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1677 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-16 19:22:23 +00:00
strmnnrmn
4fbe2d4d91 [~] Add a FIXME from xcode analysis
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1666 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-06 18:20:00 +00:00
salvy
fae089c360 [!] Updated roms.ini
[!] Pre-swap addr of cheatcodes when parsing, this allow us to speed up when applying cheat codes
[~] Misc fixes and changes for cheat code menu
[+] Now is possible to disable cheat codes individually

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1658 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-02 20:46:00 +00:00
salvy
581072f5e2 [!] Fixed MSVC warnings
[!] Optimization for Sprite2D, only update the counter individually when next command doesn't match
[!] Fixed and optimized guNormalize_Rugrats (Still can't find any game that uses this errg)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1599 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-18 22:05:31 +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
84b5f81098 [~] Merge some minor whitespace fixes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@904 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-27 20:44:09 +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
ef46b718db [=>] Merge from GIT repo
[!] Use ROM_GetCountryNameFromID when inserting country ID for cheats
[~] Small typo when inserting country id in cheats
[!] Simplified abit when applying cheats
[!] Optimize cheatcode apply (cheats will be applied directly to RDRAM) Will remove cheat frequency option eventually, since there's isn't much overhead from cheats now
[+] When disabling cheats, sure we can save the most recent value later on
[!] More lean ups/Optimisations to cheat feature

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@841 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:58:47 +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
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
5dab177d4c Fix inconsistent line endings in Cheats.cpp/h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@834 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:50:56 +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
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
e48a3db53b [+] Daedalus can now be translated to any language (not used yet, will add Spanish translation as example and leave the rest to the community)
[~] Some clean ups to some redundant code

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@572 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-05 02:19:08 +00:00
Salvy
f56ade7a72 [!] Fixed bug in cheat parser for large cheats (Pilot Wing's shadow fix works properly now)
[-] Removed Pilot Wings hack (again), no longer needed ^

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@558 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-22 00:24:18 +00:00
Salvy
54196ec36c [!] Remove any excess of cheats to avoid wasting memory
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@382 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-26 01:50:13 +00:00
Salvy
50ea1c7c76 [!] Enable callbacks when gprof build is compiled
[!] Unlocked volatile memory (this unlocks 4mbs extra of memory)
[!] Disabled suspend (this won't work anymore when volatile memory is unlocked)

Note: The only side effects when volatile memory is used is that suspend and dialogs won't work I twon't affect us though, since we don't depend on neither ;)
Note2: Only cheat codes are using the extra mem atm as a test.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@351 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-15 06:43:15 +00:00
Salvy
ec49835c27 [+] Use sscanf to speed up parsing of addr and value for cheats (Now both addr and value are retrieved in one go, and also avoids unnecessary conversions)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@309 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-19 06:16:25 +00:00
Salvy
d93f4a4e97 [!] Small fix for cheat names
[!] Updated all cheat entries

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@308 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-17 23:02:46 +00:00
Salvy
89dd5e5359 [!] Simplified DMA_PI_CopyFromRDRAM (we only for DOM2/ADDR2 anyways)
[!] Simplified WriteValue_Cartridge (Added notes too for games that write to ROM in DOM1/ADDR2..)
[!] Moved RTC READ out of ProcessEeprom to keep code clean, and added an assert for NOP cmds in PIF.
[~] Killed a couple of dead externals
[!] Signed extend DADD/DADDU and also operand in 32bit (fixes Excite Bike and saves 4 ops)
[~] Small clean ups here and there..

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@307 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-17 22:48:30 +00:00
Salvy
9d5dbf42f1 [!] Remove country ID line from cheats to speed up cheat parsing (this was redundant anyways, since we now insert that info in the name itself)
[!] Updated entry of Aerogauge as an example how cheats are formatted now.

Note : All cheats need to be updated!

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@306 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-14 17:18:17 +00:00
Salvy
f2ec448189 [+] Insert country ID in ROM name for cheats (This is to allow more cheat code entries per slot and to fix the parsing cache for cheatcodes when having multiple regions of the same ROM.)
[!] Updated Daedalus.cht to follow new format
[~] Removed entries for hacks that are no longer used

Note : Cheatcode format has changed slightly, Please refer Cheat FAQ for help : http://forums.daedalusx64.com/viewtopic.php?f=12&t=3298

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@288 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-27 22:57:46 +00:00
Salvy
971b20520e [!] Several clean ups here and there
[~] Removed pilot wings' shadow hack (this is now handle by a cheat, only added the U version, I'll add the rest later)
[+] Added cheatcode deletion (this is disabled since is not used, will enable it if is a highly requested feature)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@279 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-14 18:05:55 +00:00
Salvy
6646b5f72e [+] Cache custom ucodes
[~] Minor clean up in CheatCodes_Clear

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@270 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-03 08:16:03 +00:00
Salvy
a4b5d5169f [!] Fixed bug in codecount that caused to count bogus values (Thanx Corn for spotting the issue)
[!] Removed hack I had to kill the apply cheat loop early due the bug in codecount

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@269 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-03 07:36:01 +00:00
Salvy
5c1a260ce1 [~] Bit of commenting and clean up
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@268 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-02 06:40:17 +00:00
Corn
0e8176426d [+] Added Aerogauge speedhack
[!] slimmed cheat type checking

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@266 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-30 16:31:38 +00:00
Salvy
b5c122a89e [+] Added support for GS button cheats, just press SELECT to use them.
[!] Increase cheats to eight per game


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@261 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-27 20:06:36 +00:00
Salvy
75ea9431f6 [!] Simplified CheatCodes_Apply
[!] Fixed cheats not showing up after running and exit the same ROM

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@259 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-26 22:36:23 +00:00
Salvy
82f3ef5e2f [!] Made cheat front-end more friendly (always have cheats ready for the user without any hassle)
[!] Only parse the cheat file when the ROM is different than the previous ROM (to avoid unnecessary overhead, thnx Corn for the help)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@257 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-26 19:22:44 +00:00
Salvy
a875f2a306 [!] Apply cheat codes only once every 60 VBLs (to avoid hogging the emulator)
[+] Added support for compressed cheats and activator cheats are fully supported as well
[!] Flush save once per row, instead of 4 times per row (Corn)
[+] Added more cheat codes (mostly compressed and activator cheats for testing)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@255 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-26 07:37:54 +00:00
Salvy
5f842cfdb6 [+] Handle cheat codes at 0xD0000000 and 0xD1000000 ( Ex; Pokemon Snap's camera fix cheat code)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@254 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-25 23:01:57 +00:00