summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOProperties.cpp
AgeCommit message (Collapse)Author
2016-12-01DolphinWX: Separate the information panel from ISOPropertiesLioncash
Makes the information panel self-contained. This was done first, as opposed to isolating the GameConfig panel--the first panel in the group--as this panel had code all over the place in ISOProperties, so I figured it'd be best to fix this one up first.
2016-11-06DolphinWX: Make the main config dialog modelessLioncash
2016-11-02Merge pull request #4414 from linkmauve/single-newlineMarkus Wick
Remove double newlines at the end of *_LOG messages
2016-11-02Core: Remove double newlines at the end of *_LOG messages.Emmanuel Gil Peyrot
2016-10-29DiscIO/SConfig: Rename GetUniqueID to GetGameIDJosJuice
We call this "game ID" everywhere else, and it's not actually completely unique.
2016-10-08[UI] Remove idle skipping from game propertiesHelios747
2016-10-04WX: HiDPI: ISOPropertiesEmptyChaos
And related ARCodeAddEdit/PatchAddEdit. Change ISOFile to use wxImage instead of wxBitmap since bitmaps require a screen context and banner images have a fixed resolution.
2016-10-02Merge pull request #4048 from EmptyChaos/wx-cheat-noticeshuffle2
WX: ISOProperties: Add notice when cheats are disabled (Issue 9690)
2016-10-02Merge pull request #4227 from ligfx/clean_objcshuffle2
Don't force compile everything as Objective-C++ on macOS
2016-10-01Reorganise a ton of logs levelaldelaro5
Most of this commits changes performance decreasing logs from info to debug and also cleans up innacurate levels.
2016-09-18Don't force compile everything as Objective-C++ on macOSMichael Maltese
2016-08-31ISOProperties: Add notification when Cheats are disabled.EmptyChaos
If the user enables a cheat while cheats are globally disabled then display a notice about it. Issue 9690.
2016-08-31CheatManager/ISOProperties: Refactor ActionReplay tabs as a classEmptyChaos
Refactor Action Replay code into its own class like Gecko Codes.
2016-07-16Add md5 testing to netplayAestek
Allows to test current game, an arbitrary game or the sdcard of all players at once.
2016-07-13Move DiscIO enums to a new fileJosJuice
At first there weren't many enums in Volume.h, but the number has been growing, and I'm planning to add one more for regions. To not make Volume.h too large, and to avoid needing to include Volume.h in code that doesn't use volume objects, I'm moving the enums to a new file. I'm also turning them into enum classes while I'm at it.
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.