mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Finished update window (YAY!)
Updates now work, and have been tested. Made a few other updates. To work on: aesthetics? git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@759 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -85,17 +85,6 @@ void Package::open(const String& n) {
|
||||
}
|
||||
}
|
||||
|
||||
void Package::openZipStream(wxZipInputStream* input) {
|
||||
// close old streams
|
||||
delete fileStream; fileStream = nullptr;
|
||||
delete zipStream;
|
||||
|
||||
zipStream = input;
|
||||
if (!zipStream->IsOk()) throw InternalError(_("Error opening package!"));
|
||||
|
||||
loadZipStream();
|
||||
}
|
||||
|
||||
void Package::save(bool remove_unused) {
|
||||
assert(!needSaveAs());
|
||||
saveAs(filename, remove_unused);
|
||||
|
||||
@@ -71,9 +71,6 @@ class Package : public IntrusivePtrVirtualBase {
|
||||
/// @pre open not called before [TODO]
|
||||
void open(const String& package);
|
||||
|
||||
/// Open a package from a zipstream that doesn't necessarily have a filename (i.e. a URL).
|
||||
void openZipStream(wxZipInputStream* input);
|
||||
|
||||
/// Saves the package, by default saves as a zip file, unless
|
||||
/// it was already a directory
|
||||
/** If remove_unused=true all files that were in the file and
|
||||
|
||||
Reference in New Issue
Block a user