summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2010-06-03Make wxgl mandatory on OS X.nJoySoren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5576 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Fix some cases of variables being used uninitialized. Also some unusedSoren Jorvang
variables, writeable strings and dangerously shadowed variables. index(), gamma(), exp() and y0() are POSIX functions and using those names can cause namespace confusion. A number of C files were missing the final newline required by ANSI C and some versions of GCC are pedantic enough to complain about this. These changes simply the scons build, allowing us to get rid of filterWarnings which is simply more trouble than it's worth. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5574 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Meta:Soren Jorvang
Using Unix tools to operate on a tree containing filename with spaces in them is really annoying, so rename the handful of instances where there were spaces. Host.cpp has never been used. Games tend to lookup the following directories that we don't yet have anything to put in, so prepopulate them in Data/User/Wii: title/00010001 title/00010002 title/00010003 title/00010004 title/00010005 title/00010006 title/00010007 meta shared2/title Set eol-style native on a number of text files which didn't already have it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5572 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Fix typo.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5571 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Higher resolution icon image contributed by the original artist.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5570 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Remove a few __APPLE__ ifdefs which are no longer necessary.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5569 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01fix AudioCommon including linux headers on windowsShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5568 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01Hopefully fix building on Linux.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5566 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01Some wxWidgets features, like wxProgressDialog used when updating theSoren Jorvang
game list, rely on the main event handler already running, which isn't the case until after OnInit(). This is a problem when an ISO directory is already set at startup. To deal with such actions that can only properly be done after the wx environment is fully functional, schedule AfterInit() where the initial game list scan is done. The underlying icon object for wxIcon on OS X didn't work with our (non-square?) 96x32 game list graphics, but we weren't using any wxIcon properties such as transparency anyhow, so just skip the wxBitmap to wxIcon back to wxBitmap conversions. Use wxID_ABOUT and wxID_PREFERENCES so that those menu items are automagically teleported to their canonincal locations on each platform. USE_XPM_BITMAPS has been implicit on all platforms for some time now. AddGrowableCol() causes problems in a couple of inessential places for some unknown reason, even though the same pattern works fine elsewhere. These changes make us play a lot nicer with wxWidgets 2.9. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5564 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01Only warn about unknown magic words if none of the known ones are found.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5563 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01Now that Core Audio works, reduce the number of build permutations a bit Soren Jorvang
by not linking in other Unix audio modules. Use kAudioUnitSubType_DefaultOutput instead of kAudioUnitSubType_HALOutput so that a runtime switch to another audio device is automatically handled. Use ERROR_LOG for audio errors. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5562 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-31Avoid printing garbage numbers in the status line when the processSoren Jorvang
becomes blocked. This was most readily apparent when first starting programs from a high-latency filesystem. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5558 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-31Identify OS X application bundle with SVN version number.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5557 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-31Have the AudioUnit callback drive the internal mixer directly insteadSoren Jorvang
of going through an intermediate thread and buffer. This seems to be how Core Audio is meant to be used, although I still haven't read the manual. Indeed, sound on OS X works perfectly now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5555 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Limit buffer size required to extract files. This helps avoid out of memory ↵donkopunchstania
errors. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5553 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Consider 'X' as region-free.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5552 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Mark 'A' as being region-free, but still explicitly default it to Soren Jorvang
European settings. Also try to add sensible defaults for [LMNTQ] taken from http://wiibrew.org/wiki/Title_database#Region_Codes . git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5551 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30'A' appears to be another country code for Europe.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5550 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30De-inline StripTailDirSlashes() to work around a weird code generation bug.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5549 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Made the Dolphin config dialog shorter with an added "Display" tab. Removed ↵Jordan Woyak
code that toggled fullscreen on double-click in gamecube games because GCPad New allows mouse input (maybe double-click fullscreen toggling should be an option though). Changed the label in the toolbar from "GC Pad" to "GCPad" (all other labels on the toolbar are single words and we call the plugin "GCPad" everywhere else). Made game properties dialog open centered on screen. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5548 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30The rendering codepath doesn't currently quite recover from an OpenCLSoren Jorvang
initialization failure, so help it along a little by also considering the CPU as an OpenCL device. Use CL_DEVICE_TYPE_DEFAULT rather than CL_DEVICE_TYPE_ALL as that will give preference to the spiffy GPU if one is present. Implementations of OpenCL are likely to put a GPU as the first device in the list, but there is no guarantee of this and this code currently only picks the first device in the list. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5547 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Another creeping wx dependency via NetPlay.Soren Jorvang
Is nowx worth maintaining? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5546 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-30Get the audio unit output buffer size and use that as the renderingSoren Jorvang
quantum, as the callback wants us to provide exactly the amount of samples needed. This is incomplete because core audio may ask for less than the full buffer size (for me, typically 1484 or 1488 bytes of a 2048 byte buffer). As a quick hack until I read the rather impenetrable core audio documentation, assume that each callback request will want about the same number of samples as the preceeding one. This makes sound bearable. Also various cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5543 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29DSPLLE: followup to last change: bugfix + remove extraneous exception checkshrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5542 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Core audio system work (Watch for regressions please!):hrydgard
* Restore Audio Throttle to function properly, broken by Ayuanx many hundreds of revisions back. * Simplify DSPLLE JIT dispatcher in preparation for an asm rewrite * Remove hack that made DSPLLE JIT seem faster than it was by running fewer cycles, but resulting in bad sound. This shows off how mysteriously slow it is - I don't understand why it's not faster. Use the DSPLLE interpreter for now if you want to use DSPLLE. * Made "DSPLLE on Thread" work properly with correct-ish timing - although the speed benefit is really small now. If it seems like this change slows anything non-LLE down, try turning off Audio Throttle and use the frame limiter in options instead. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5541 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Make this work with debug builds again.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5540 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Add some safety to file names. This fixes a buffer overrun when extracting ↵donkopunchstania
everything from an ISO. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5537 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29DSPLLE: Some cleanup. Possibly very small speed increase.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5535 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Revert 5533, removing the misleading TODO and commenting it properly.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5534 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Get disk cache revision from SVN_REV.XTra.KrazzY
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5533 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Changed both video plugins to save PNG screenshots. Made GCPad New default ↵Jordan Woyak
in trunk (it already is in stable). Fixed a hack in new wiimote plugin. Other minor changes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5532 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-28Improve iterator usage.Jordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5528 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-28wxFileSelector with wxWidgets 2.9 on OS X allows only very simple globSoren Jorvang
patterns like "*.foo". git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5527 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-28In r5448 the CSharedContent and cUIDsys constructors create the Wii/shared1Soren Jorvang
and Wii/sys directories if they do not already exist. This conflicts with DolphinApp::OnInit (run after constructors) which populates the User tree only if there isn't already something there. Instead, set up the two directories in the Data tree. With this change, sys/uid.sys still won't be created until the _second_ run after a fresh install, so these file initializations should be moved out of constructors so that they will be run after OnInit(). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5526 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-28Linux compile fixnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5525 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-28GameListCtrl: fixes progress bar for extracting multiple files (cant mix ↵LPFaint99
ascii with unicode wxstring:format) use appropriate extensions extracting compressed wii discs check for tmd+tik for each title and list titles correctly for sysmenu versions <=0xE0 this will allow viewing of installed channels but they will not launch until ES_Launch is emulated so far I have not been able to determine why later sysmenu versions do not display channels correctly switching between system menu versions is as simple as rightclicking a system menu wad in the gamelist and installing to wiimenu than restarting git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5524 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27lets apply some mathematical magic:Rodolfo Osvaldo Bogado
* optimize may last commit to make it faster * reorder the code to make it more readable please test and enjoy git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5520 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27Fix another piece of cleanup fallout which appears to have been the causeSoren Jorvang
of the file save bug. (_dbg_*() should really get the same treatment as *_LOG() to remove this whole class of #ifdef hell.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5519 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27One more case of 64-bit code outside _M_X64, pointed out by omegadox.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5518 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27Revert previous.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5517 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27ultra experimental commit. fixed tev functionality, now it must be almost ↵Rodolfo Osvaldo Bogado
perfect emulating native hardware. please test as many games as you can this should impact a lot of games. enjoy git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5511 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-27Put back call to ScanDirectoryTree() while FindValidTitleIDs() is still in use.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5510 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Don't assume writeable C strings.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5508 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Unbreak nowx build.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5503 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Move 64-bit specific variables into proper scope.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5502 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Uninitialized variables.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5501 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Unbreak nowx build.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5500 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26NEWLINEbztdlinux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5498 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Simplify logging a bit.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5497 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26For these assertions to trip, enums in CPMemory.h which seem pretty much setSoren Jorvang
in stone would have to change. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5496 8ced0084-cf51-0410-be5f-012b33b47a6e