summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOProperties.cpp
AgeCommit message (Collapse)Author
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-05-30ISOProperties/GameListCtrl: Use Global INI Change event.EmptyChaos
ISOProperties no longer needs its hack to refresh the game list, the new INI Modified event can be used instead.
2016-05-29ActionReplay: UI Consistency and CleanupEmptyChaos
Cleanup code style. Move ActionReplay code->INI saving into ActionReplay namespace. Threadsafety Cleanup: ActionReplay is accessed from the Host, Emu and CPU Threads so the internal storage needs to be protected by a lock to prevent vectors/strings being deleted/moved while in use by the CPU Thread. UI Consistency: Make ARCodes behave like Gecko Codes - only apply changes when Apply is pressed. Save changes to INI from CheatsWindow. ISOProperties/CheatsWindow now synchronize with each other.
2016-05-29ActionReplay: Fix ISOProperties corrupting active code setEmptyChaos
ISOProperties loads codes using ActionReplay::LoadCodes which actually applies the codes to the global state. If a game is running then that games receives all the codes (and ACTIVE status) from the second game being shown in ISOProperties which is not desirable.
2016-04-26DriveReader: Fix View > Show DrivesEmptyChaos
DriveReader::m_size was never initialized which was indirectly causing CGameListCtrl to crash Dolphin when it tried to insert a character at a negative index in a string. Reading one sector at a time is very inefficient and appears to be causing timing issues during boot so SectorReader has been enhanced to support batching. SectorReader has been given a working cache system.
2016-01-05DolphinWX: Stop using XPM imagesJosJuice
Using the XPM format for images has become a maintenance problem because people don't know how to create them. This commit removes all XPM images and all C files that contain PNG images. DolphinWX now uses the PNGs in the Resources folder instead, just like DolphinQt and DolphinQt2 do.
2015-12-22ISOProperties: Replace the ConvergenceMinimum option by the Convergence option.Jules Blok
The ConvergenceMinimum was replaced by Convergence in the GameINI.
2015-12-07DiscIO: Make factory methods return unique_ptrsLioncash
Rather than rely on the developer to do the right thing, just make the default behavior safely deallocate resources. If shared semantics are ever needed in the future, the constructor that takes a unique_ptr for shared_ptr can be used.
2015-12-02Merge pull request #3067 from JosJuice/cheat-manager-regressionMarkus Wick
Fix Cheat Manager not saving created codes
2015-10-12DolphinWX: decompress discs to calculate MD5 hashTillmann Karras
2015-09-25mbedTLS: run rename.pl script and fix errorsTillmann Karras
2015-09-21Remove odd way of getting ID in ISOPropertiesJosJuice
Other code (like GameListItem) simply calls GetUniqueID, and I've never seen that lead to any problems.
2015-09-19Fix Cheat Manager not saving created codesJosJuice
2015-09-13DolphinWX: Only read titles.txt onceJosJuice
titles.txt is read into a map and passed to the GameListItem constructor, making game list scanning a bit more efficient. ISOPropreties's constructor is changed to take a GameListItem as an argument instead of creating one on its own, because ISOPropreties doesn't have the titles.txt map that the GameListItem constructor wants.
2015-09-12Merge pull request #2829 from JosJuice/fix-wii-fst-size-2Lioncash
Fix reading Wii FST size (for real this time)
2015-09-11Partially revert "General: Toss out PRI macro usage"Lioncash
2015-09-05General: Toss out PRI macro usageLioncash
Now that VS supports more printf specifiers, these aren't necessary
2015-08-16DolphinWX: Fix memory leaks occurring in ISOPropertiesLioncash
This would only occur for Wii discs. While the tree data itself would be deleted, the allocated contents of it were not.
2015-08-10Fix reading Wii FST size (for real this time)JosJuice
04fcb72 fixed an issue with reading the Wii FST size, but I found a second issue when working on PR #2820 - the size must be shifted left by 2. DiscScrubber and Boot already do this correctly using separate code.
2015-07-30Remove unnecessary virtual keywordsLioncash
2015-07-08DolphinWX: Pass string by const reference in CISOProperties constructorLioncash
2015-06-12Options: merge SCoreStartupParameter into SConfigdegasus
2015-06-08Merge pull request #2509 from comex/fix-ar-codesRyan Houdek
Fix subdialogs of the ISO props dialog... sort of
2015-06-04Volume: Return volume type as an enumJosJuice
ISOFile and GameFile were using IsWiiDisc() and IsWadFile() to set an enum value. The volume might as well return an enum directly. I increased the Qt CACHE_REVISION because m_platform now is saved as u32 instead of int, but increasing the wx CACHE_REVISION is not necessary.
2015-06-02Merge pull request #2338 from JosJuice/getfilelist-returncomex
Filesystem: Return file list reference instead of modifying argument
2015-06-02Fix subdialogs of the ISO props dialog... sort ofcomex
On OS X, if you close a subdialog of the ISO Properties dialog, such as the one to add a new AR code, the main Dolphin window would magically get raised above ISO Properties. This is confusing, to say the least; when I encountered this the other day, I thought the dialog was actually getting closed. I *think* the diagnosis looks like this: Cocoa expects NSPanel (not to be confused with wxPanel) to be for things like find dialogs, font dialogs with the little title bars, sheets, etc. See: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html Therefore, NSPanels return NO for canBecomeMainWindow, which is documented; and when [NSWindow orderOut:] is called to hide a window, Cocoa seems to want to make the window it focuses in its place a main window, which, as far as I can tell, is not. So if the next highest window is a panel, it gets skipped over. (I tested this by overriding wxNSPanel's canBecomeMainWindow to return YES, in which case the right window gets focused, but this isn't a correct fix.) The ISO Properties dialog does have grounds to be a dialog/panel - the close button, whose positioning is provided by the wxDialog class. This is arguably simply a roundabout discovery that our UI sucks for an OS X app and that to be consistent with other nonmodal preferences dialogs, it shouldn't have such a button on OS X (though ESC to close is still kosher). However, I'm not willing to make that change right now, so... Hack around the problem by calling Raise (on this) after each call to ShowModal in CISOProperties. The resulting behavior is slightly glitchy, and I'd like to revisit it, but for now it fixes the issue.
2015-05-25Merge pull request #2326 from JosJuice/isoproperties-config-blockRyan Houdek
ISOProperties: Don't block when opening default INI in text editor
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-11Volume: Rename GetName to GetInternalNameJosJuice
This is intended to better separate it from GetNames and to clarify that this name originally wasn't meant to be shown to users. The ISOProperties GUI is also updated, mainly because labeling the long banner name "short name" was confusing.
2015-05-08Core: Remove some header inclusions in header filesLioncash
Replaces them with forward declarations of used types, or removes them entirely if they aren't used at all. This also replaces certain Common headers with less inclusive ones (in terms of definitions they pull in).
2015-05-08DolphinWX: Remove unnecessary includesLioncash
2015-05-05Merge pull request #2286 from JosJuice/wii-opening-bnrcomex
Read opening.bnr to get names from Wii discs
2015-04-28Filesystem: Return file list reference instead of modifying argumentJosJuice
2015-04-25ISOProperties: Don't block when opening default INI in text editorJosJuice
The purpose of blocking is to reload user INIs after they have been edited. However, ISOProperties never reloads default INIs, because they aren't meant to be edited. Blocking on default INIs is thus useless, and it's rather annoying for games that have two default INIs, because it makes it impossible to see both at once.
2015-04-25ISOProperties: Correctly handle partitions with 0 filesJosJuice
2015-04-24Fix extracting files from Wii discsJosJuice
I broke it for individual files but not folders in 4.0-6016.
2015-04-23Return GetNames languages, to avoid hardcoded language lists in callersJosJuice
This makes the code cleaner and also leads to some user-visible changes: The wx game properties will no longer let the user select WAD languages that don't have any names. The Qt game list will now display names using the languages set in the configuration instead of always using English for PAL GC games and Japanese for WADs. If a WAD doesn't have a name in the user's preferred language, English is now selected as a fallback before Japanese.
2015-04-15Fix extracting Wii disc partitions numbered 10 or higherJosJuice
Instead of trying to get the partition number from the (localized!) item name, the partitions are now stored as item data.
2015-04-10ISOProperties: Remove unnecessary/unused variables & controls.Lioncash
2015-04-08Move down Country_WorldStevoisiak
The countries are sorted alphabetically. This should have been changed when the variable was renamed from Country_International to Country_World
2015-03-24DolphinWX/Common: Change some find_first_of usages to findLioncash
It's unnecessary to use find_first_of when all you're searching for is a single character.
2015-03-06Fix 4.0-5689 regression (AR codes, patches)JosJuice
CreateCodeTab, ARCodeAddEdit and PatchAddEdit need to be able to modify arCodes/onFrame.
2015-02-27Merge pull request #2120 from JosJuice/show-default-gameiniMarkus Wick
ISOProperties: Allow opening region-free INIs with "Show Defaults" button
2015-02-24Make iso properties non modal.Rachel Bryk
2015-02-24Remove "Needed for a few games." from fast disc speed descriptionJosJuice
There are no longer any games that are known to require this. The last one was Rogue Leader, fixed in PR #1778.
2015-02-24ISOProperties: Allow opening region-free INIs with "Show Defaults" buttonJosJuice
2015-02-23Merge pull request #1942 from Buddybenj/No-Introskidau
Replace Country Names With No-Intro Names
2015-02-21Merge pull request #2018 from JosJuice/gameini-region-wildcardMarkus Wick
Support game INIs that match all regions
2015-02-17Replace Country Names With No-Intro NamesBuddybenj