Commit Graph

530 Commits

Author SHA1 Message Date
Lisias
d20056380e Using a new Exception for handling unknown disk formats. This will make handling errors easier. 2018-01-08 12:02:58 -02:00
Lisias
2872d93acc Implementing a User Warning for the Disk Corruption problem. 1st pass. 2018-01-08 12:02:58 -02:00
Lisias
d2199f0792 Revising the DiskException handling. I was wrongly handling it as a user warning on some places where this is not viable (as a Ant Task!!). 2018-01-08 12:02:58 -02:00
Lisias
144841a296 Somewhat better DiskCorruptException handling. Avoiding redundancy. 2018-01-08 09:20:12 -02:00
Lisias
f3316262c8 Fixing a wrongly placed DiskException handler on the command line tool. 2018-01-08 08:24:39 -02:00
Lisias
ae66b88e0a Adjusting the coding format as suggested in:
https://github.com/AppleCommander/AppleCommander/pull/19#pullrequestreview-82711570
2018-01-07 19:12:46 -02:00
Lisias
5c77c57aa2 Fixing and optimizing the loop detection as suggested in:
https://github.com/AppleCommander/AppleCommander/pull/19#pullrequestreview-82712102
2017-12-14 01:08:23 -02:00
Lisias
7b729b9d0b Detailing the exception for further analysis and rescuing efforts as suggested in:
https://github.com/AppleCommander/AppleCommander/pull/19#discussion_r156263263
2017-12-14 00:36:16 -02:00
Lisias T
50608b9c43 Fixing https://github.com/AppleCommander/AppleCommander/issues/18 2017-12-04 03:15:38 -02:00
Rob Greene
aa972ee6c8 Merge branch 'master' into gradle 2017-11-20 21:13:51 -06:00
Rob Greene
2d6e7c28d0 Revert "Merging in iKarith's pull request from master so it does not get lost!"
This reverts commit be8d04cce2.

Bad developer, biscuit! :-)
2017-11-20 21:06:08 -06:00
Rob Greene
be8d04cce2 Merging in iKarith's pull request from master so it does not get lost! 2017-11-20 20:59:36 -06:00
T. Joseph Carter
bfaf30bffe Mod FilenameFilter to support JavaFX
(cherry-picked to fix AppleCommander/AppleCommander#13 since I've
discovered that I was wrong and it does fix the problem after all!)

cwa.storage.Disk.FileFilter was written for SWT, returning multiple
extensions as a single string with ; separators.  For JavaFX, we
actually want individual strings separately or in a list.

The only place these are initialized in cwa.storage.Disk anyway, so what
I've done is change the class to instatiate with separate strings and
join them on demand for SWT.  A new getExtensionList() method will
return them as-is for JavaFX.
2017-11-20 04:59:42 -08:00
Rob Greene
3ed8f0b974 Fixes #10. 2017-11-16 22:08:46 -06:00
Rob Greene
a108289ca2 Bumping version to distinguish next release. 2017-11-16 22:07:04 -06:00
Rob Greene
438e6ec1f0 First draft of morphing AppleCommander to use Gradle instead of Ant. 2017-11-15 23:00:11 -06:00
T. Joseph Carter
234f1485f2 Merge branch 'master' into linux 2017-11-15 18:25:23 -08:00
A2 Geek
5d9ac872fd
Merge pull request #9 from iKarith/master
Fix my idiot attempt to fix this warning
2017-11-15 20:19:22 -06:00
A2 Geek
ba85678853
Merge pull request #8 from iKarith/linux
Build on Linux and macOS using reasonably current JDKs
2017-11-15 20:18:53 -06:00
T. Joseph Carter
c74e9ad3bd Fix my idiot attempt to fix this warning
My fix for the unchecked warning in AppleImage.java was completely dumb
and I had no idea what I was doing.  My understanding of how this works
is now greatly improved and the bug I introduced in 292afd2 is fixed.
2017-11-13 09:23:05 -08:00
T. Joseph Carter
a47f152cd9 Cosmetic variable rename 2017-11-11 19:56:33 -08:00
T. Joseph Carter
44fd1cb010 Make GUI request errors clean
If you don't request a specific GUI, we try SWT and then Swing.  Okay.
But if you do, we don't even try to see if it works—we just assume SWT
works.  If the user requested Swing, we just unconditionally spit out an
error message and try to start the GUI anyway.  Let's make the errors
conditional on the GUIs being unavailable.

Note, a Swing GUI is available.  It is just incomplete and doesn't work
very well.  :)
2017-11-11 19:43:11 -08:00
A2 Geek
43796815bf
Merge pull request #7 from iKarith/unchecked
Remove -Xlint:unchecked warnings
2017-11-11 17:26:30 -06:00
T. Joseph Carter
292afd24c9 Remove -Xlint:unchecked warnings
Fixed all instances of warnings OpenJDK finds with -Xlint:unchecked.
Merging this will at least result in a dependency on JDK 1.5 or later
that I'm pretty sure of.  But since the only JDKs that are really safe
to use these days are versions 1.8 and 9, that's probably okay.

No promises that this will make modern SWT work or anything, but it's
probably at least a beginnig toward that as well.
2017-11-09 13:03:03 -08:00
Rob Greene
d7f2631434 Updating web site and rearranging a bit to save space per #6. 2017-11-08 13:27:22 -06:00
T. Joseph Carter
1880998892 Fix varargs warnings
Javac cannot tell if the getMethod and launchMethod uses here are
being done with varargs or not, so we need explicit casts to silence the
warning.
2017-11-07 13:47:47 -08:00
T. Joseph Carter
f683bfc24c Created .gitignore to replace the .cvsignore files 2017-11-02 22:49:36 -07:00
8a3ee78f58 Remove deprecated package, re-implement in ImageIO 2017-06-12 17:06:21 +00:00
84fb7e7d03 Correct Gutenberg file processing if we have more than one catalog sector 2015-01-10 04:33:32 +00:00
e690c0673c Make AC-created disk images not crash on Apple /// computers 2014-04-18 17:11:59 +00:00
John B. Matthews
29d5afc673 Throw exception in CpmFormatDisk#createFile() 2014-01-25 16:57:40 +00:00
John B. Matthews
9c98158778 Version 1.3.5.14; call system.exit in SwtAppleCommander#dispose for Mac OS X. 2013-11-24 18:19:44 +00:00
8e277d98e8 Bug found by Ivan Drucker: zero length data forks (but positive length resource forks) were being silently ignored. 2013-11-19 04:06:58 +00:00
11805cd8b3 Fix from Ivan Drucker: PARENT_ENTRY starts at one, not zero. 2013-11-19 02:35:55 +00:00
4989c0353b Submitted by Martin Haye:
When one creates a subdirectory on a ProDOS volume, the master entry in the subdirectory's key block needs to point back to its parent directory block and entry number. However, the code for setting those things is missing.
2013-07-05 03:25:12 +00:00
43ccf507c4 Save directory entry changes after making them 2012-11-22 05:56:48 +00:00
7df83119ab A different approach to specifying a physical ordering 2012-10-25 00:33:53 +00:00
9e2bf817d7 Make the Disk constructor with image order specification public 2012-10-24 22:31:22 +00:00
b53a6ba61c Allow extraction to a file name for -e and -g 2012-10-11 11:54:56 +00:00
b52df7745b Allow extraction to a file name for the ant task 2012-10-11 11:38:55 +00:00
6526cf3e0b When faced with a 140k image, let the file suffix .do, .po, .2mg take precedence before we go sniffing for a filesystem. 2012-10-09 13:36:37 +00:00
d8ef6f1a70 Make a few more methods externally visible in the command line ui 2012-09-10 01:00:33 +00:00
49e2e45c10 Make 'volname' in ant task match the help text 2012-09-05 00:54:49 +00:00
821e7c7977 Tighten up the ant task a bit 2012-08-15 04:02:58 +00:00
0935e13c51 Correct exception behavior for Shrinkit file not found situations 2012-08-13 03:27:09 +00:00
c0fbb83867 Somehow mention we do .bxy too 2012-08-13 02:23:27 +00:00
9fa4abe3f3 Fail harder when files don't unshrink well
Allow size specification on unshrink image
2012-08-12 17:30:52 +00:00
2fac776ed3 Allow converting BXY files
Allow zero-length shrinkit files
Allow situations where shrunk files have full paths as filenames
2012-08-11 20:57:44 +00:00
87eca0095c Implement directory creation in ProDOS
Side effect: opened up the previously private 'Name' class in ui; this simplifies directory handling elsewhere, as it automatically creates a directory structure to a pathed file.
2012-08-08 03:10:57 +00:00
01fd44f8fd Working on add directory for ProDOS... surely this is the first step? 2012-08-07 01:52:00 +00:00