59 Commits

Author SHA1 Message Date
a612ea5cfd Quick and dirty global setting for forcing un-compression of
sets.
2016-04-17 17:12:48 +01:00
gjefferyes
5a93500001 Thanks to test work done by EDC, this is based on that code, added double buffered file reading, and multi-threader hashing in zip and file checking. V2.2.5 2016-02-12 16:02:48 -06:00
gjefferyes
905574d120 Merge pull request #23 from LnmVolbo/master
Update MESS Software List reader to allow unzipped archives
2016-02-12 09:51:34 -06:00
gjefferyes
063254ccb6 Quck update to add machine to DatXMLReader 2015-12-23 12:03:42 -06:00
LnmVolbo
8a908bf60c Merge pull request #3 from LnmVolbo/LnmVolbo-patch-1
Update DatMessXMLReader.cs
2015-09-25 13:14:17 -07:00
LnmVolbo
239b001daa Update DatMessXMLReader.cs
These changes are intended to allow the MESS software list items to be saved as files instead of zip archives.

The reasoning behind this is to allow users with compressed volumes to avoid having to take the performance hit of compressing everything twice - or having to convert all their xml based .dat files to clrmamepro .dat file format to take advantage of the  'forcezipping no' tag.

These changes were made with the code from DatXmlReader.cs as a model.
2015-09-25 13:09:15 -07:00
LnmVolbo
03141ff8f0 Merge pull request #2 from gjefferyes/master
Update to changes on 9/16
2015-09-25 12:51:18 -07:00
gjefferyes
e6e0c73dcd Version 2.2.4 2015-09-16 20:52:03 -05:00
gjefferyes
7d25bd8519 Merge pull request #15 from LnmVolbo/master
Keep contrast up on GameGrid and RomGrid
2015-09-16 20:22:14 -05:00
gjefferyes
c61eead2ba #16
Changed
  SelectedPath = @"apps"
to
 SelectedPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Reports")
2015-09-16 20:18:21 -05:00
gjefferyes
2d6c5a7e26 #18
replaced:
Environment.SpecialFolder.DesktopDirectory
with
Environment.SpecialFolder.MyComputer
2015-09-16 20:14:17 -05:00
gjefferyes
b6be1a9ec1 #19 Fixed possible hard Crash when scanning files. 2015-09-16 20:09:54 -05:00
gjefferyes
5107b5b850 Removed DatMessBIOSReader due to MAME and MESS being combined. 2015-09-16 20:01:03 -05:00
gjefferyes
33f204fc37 Cleaned up Natalia Portillo's Mess Bios xml Reader. 2015-09-16 17:41:26 -05:00
gjefferyes
dc99d2328d Merge pull request #13 from claunia/master
Added support for MESS BIOS xml datlist (mess -listxml)
2015-09-16 17:37:12 -05:00
gjefferyes
0817f01538 When making a dir2dat, the "clean" routine overdoes it when translating the apostrophes, Fixed by changing order of code. 2015-09-16 17:20:58 -05:00
LnmVolbo
1b4caa8e34 Update FrmMain.cs - 2nd rev.
This time I have pre-computed all the font colors into a table named _fontColor.

These pre-computed values are created as soon as the _displayColor table is finished being created.

Using these pre-computed values is more efficient than computing them for every entry in the GameGrid and RomGrid.
2015-06-23 09:04:26 -07:00
LnmVolbo
6981a16a67 Update FrmMain.cs
Haven't got the knack of getting the edited source straight out of my visual studio IDE, so I'm just copying and pasting bits here.  So I'm not really sure if it still compiles w/o errors.
2015-06-22 19:37:52 -07:00
LnmVolbo
14054dc06f Merge pull request #1 from gjefferyes/master
pull request tryout
2015-06-22 19:23:36 -07:00
gjefferyes
c04bb9d070 Fixed a baddump merging issue (Thanks to Marco for the details to fix this.) 2015-06-11 10:12:36 -05:00
gjefferyes
32f67308fa fixed loading the mame 0.162 dat's using the 'machine' xml node. 2015-06-10 09:45:03 -05:00
efaba1f3d9 Added support for MESS BIOS xml datlist (mess -listxml) 2015-03-30 23:04:20 +01:00
gjefferyes
b368f33351 A Little Code cleanup in FrmMain, and set Version to 2.2.1 for public release. V2.2.1 2015-01-27 09:09:24 -06:00
gjefferyes
48ea11ab2e Merge pull request #12 from jwestfall69/sort-fix
fix sorting on GameGrid
2015-01-26 09:44:28 -06:00
Jim Westfall
3e261ee077 fix sorting on GameGrid
When switching to Cell_Formatting to fix rendering in mono and also provide
a speed up to displaying the GameGrid, it broken sorting on the CGame and
CDescription columns.  This is because we are no longer setting the Value
field on those cells.  On windows, clicking those column headers would do
nothing, under mono it would cause a crash.

Instead of reverting the Cell_Formatting change, this update make us handle
the sorting ourselves.  Mono doesnt implement SortCompare, so had to handle
column header clicks and make our own IComparer.

This also disables sorting on columns that are images, including on RomGrid.
2015-01-18 14:09:11 -08:00
gjefferyes
a4939e5bf4 Merge pull request #10 from jwestfall69/mono-fixes
Work around mono crashing on Rows.Clear()
2015-01-14 13:10:47 -06:00
Jim Westfall
1c588291b7 Merge branch 'master' into mono-fixes
Conflicts:
	ROMVault2/Settings.cs
2014-12-08 17:13:52 -08:00
gjefferyes
47731743b6 Cleaned up a little more, removed the frmRegistration code.
And ready for a first github release. so changed to version 2.2
V2.2
2014-12-08 10:29:43 -06:00
Jim Westfall
39e4a6114f Fix FolderBrowserDialog's under mono
Mono doesnt work well with RootFolder of DesktopDirectory,
you end up being stuck in ~/Desktop/.  Instead when being
run under mono use MyComputer, which dumps you to /
2014-12-07 10:01:27 -08:00
Jim Westfall
b54610c2f6 Work around mono crashing on Rows.Clear()
Mono will crash if you do a Rows.Clear() and the first row isnt visible.  To
work around this, when running under mono force scroll to [0,0] cell before
issuing the Clear().

https://bugzilla.xamarin.com/show_bug.cgi?id=24372

Renamed Settings.MonoFileIO to Settings.IsUnix
Created Settings.IsMono
2014-11-13 17:24:53 -08:00
gjefferyes
09ccdd7e10 remove service References 2014-11-13 09:54:31 -06:00
gjefferyes
7fa939af29 Merge pull request #8 from jwestfall69/mono-ui-fixes2
Additional Mono rendering fixes
2014-11-13 09:42:53 -06:00
gjefferyes
b85be9ea04 Merge pull request #7 from jwestfall69/mono-chdman
chdman mono/linux fixes and improvements
2014-11-13 09:42:02 -06:00
gjefferyes
bd466459e1 Merge pull request #6 from jwestfall69/mono-ui-fixes
Mono UI/Crash fixes
2014-11-13 09:41:08 -06:00
Jim Westfall
1d37e0004a speed up populating GameGrid
These changes speed up how long it takes to populate the GameGrid after
clicking on a dat in the Tree.  MAME 0.155 dat was used for testing.
Before the changes population times were

windows .net = 2.75 seconds
linux mono = 23 seconds

After the changes, both now take 300-400ms.

This was done using 2 main changes.

1. Fully move populating the rows' Values to the CellFormatting function
2. Determine the total number of rows we will need and use
GameGrid.rowCount to set the row count to that.  This is much faster
then doing individual Add()'s for each row.
2014-11-08 10:19:27 -08:00
Jim Westfall
004ba9c870 Force all pTree.Tree.RTree to have aleast some width.
This fixes ToSort not having the "└" in the tree view.
2014-11-05 13:51:51 -08:00
Jim Westfall
c82f688adc ui rendering fixes for progress window
FrmProgressWindow.Designer.cs was setup for the windows being 591 wide,
but rv was forcing it to be 498 when the window was brought up.  This
was confusing mono and it was causing rendering issues.  This patch
makes it so the Designer and rv agree on the width of the window.
Additional adjustments were made to standardize the spacing between
window edge/progress bar/button, resulting in a width of 511.
2014-11-05 13:15:20 -08:00
Jim Westfall
76c4af0ec3 Additional Mono rendering fixes
- on initial rendering mono likes to send a resize event where the width
is 0, ignore it.  This was causing gbDatInfo to not render until a
manual resize was done.

- set AutoScaleMode to System.Windows.Forms.AutoScaleMode.None.  This
fixes a number of rendering issues under mono and didnt seem to have any
negative effect under c#/windows builds.

- tweak some of the initial form sizes and locations on FrmMain.  A
number of the setting didnt make sense based on the size of the panel
they were put it.  This resolves an issue with the gbDatInfo and
gbSetInfo starting off with the wrong size under mono.
2014-11-01 17:05:14 -07:00
Jim Westfall
634de3b3d7 More CHD related fixes
- CHDReturnError was not handled and would cause an exception/crash
- CHD error/filename were swapped in ErrorGrid when scanning
- Use regex when parsing chdman stdout output
2014-10-29 20:20:37 -07:00
Jim Westfall
7f6b01516d Fix parsing of chdman stderr output.
Makes it works under mono/linux and also corrects the displayed error
message in windows.
2014-10-28 21:10:43 -07:00
Jim Westfall
e27dfd039d chdman fixes for mono/unix
- call chdman as chdman and not chdman.exe
- fix parsing issue with chdman stderr output
2014-10-28 18:37:16 -07:00
Jim Westfall
e950b00a67 GetFiles() for mono was missing initializing the Length 2014-10-28 17:42:33 -07:00
Jim Westfall
16ae35a8a1 Make drawn text look better in GameGrid's CCorrect 2014-10-26 20:27:10 -07:00
Jim Westfall
bb4b77a6d7 Move (Rom|Game)Grid CellFormatting functions to be in the right #region sections 2014-10-26 19:58:01 -07:00
Jim Westfall
d5fb529b7b Need cellbounds to be the full wide and not just the visual. 2014-10-26 19:52:29 -07:00
Jim Westfall
bbfa915636 Replace *CellDraw classes with CellFormatting functions.
This fixes rendering and crashing issues in (Rom|Game)Grid with mono.
2014-10-26 19:07:05 -07:00
gjefferyes
0801ddc7f0 Merge pull request #4 from jwestfall69/master
Couple bug fixes for mono/linux, additional cleanup from file renames
2014-10-24 08:43:38 -05:00
Jim Westfall
47bf98faf0 remove needless Console.ReadLine(), causes ui to stall waiting for input on console/tty 2014-10-23 22:04:01 -07:00
Jim Westfall
f436495aa2 Fix classes to match up with recent file renames 2014-10-23 21:59:09 -07:00
Jim Westfall
9a6bc0a165 Don't attempt to read Length/LastWriteTimeUtc if the file/dir doesn't exist 2014-10-22 17:56:46 -07:00