diff --git a/auto h-encore/Form1.Designer.cs b/auto h-encore/Form1.Designer.cs index 247ed69..b2c1226 100644 --- a/auto h-encore/Form1.Designer.cs +++ b/auto h-encore/Form1.Designer.cs @@ -37,6 +37,7 @@ private void InitializeComponent() { this.lblVersion = new System.Windows.Forms.Label(); this.btnImport = new System.Windows.Forms.Button(); this.cbxDelete = new System.Windows.Forms.CheckBox(); + this.cbxTrim = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // txtAID @@ -63,12 +64,12 @@ private void InitializeComponent() { this.txtLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtLog.Location = new System.Drawing.Point(12, 392); + this.txtLog.Location = new System.Drawing.Point(12, 413); this.txtLog.Multiline = true; this.txtLog.Name = "txtLog"; this.txtLog.ReadOnly = true; this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.txtLog.Size = new System.Drawing.Size(569, 301); + this.txtLog.Size = new System.Drawing.Size(569, 280); this.txtLog.TabIndex = 2; // // btnStart @@ -76,7 +77,7 @@ private void InitializeComponent() { this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.btnStart.Enabled = false; - this.btnStart.Location = new System.Drawing.Point(12, 363); + this.btnStart.Location = new System.Drawing.Point(12, 384); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(569, 23); this.btnStart.TabIndex = 3; @@ -138,7 +139,7 @@ private void InitializeComponent() { // this.barProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.barProgress.Location = new System.Drawing.Point(12, 334); + this.barProgress.Location = new System.Drawing.Point(12, 355); this.barProgress.Maximum = 17; this.barProgress.Name = "barProgress"; this.barProgress.Size = new System.Drawing.Size(569, 23); @@ -167,18 +168,32 @@ private void InitializeComponent() { // cbxDelete // this.cbxDelete.AutoSize = true; - this.cbxDelete.Location = new System.Drawing.Point(15, 311); + this.cbxDelete.Location = new System.Drawing.Point(15, 332); this.cbxDelete.Name = "cbxDelete"; this.cbxDelete.Size = new System.Drawing.Size(306, 17); this.cbxDelete.TabIndex = 12; this.cbxDelete.Text = "Delete existing files (do this if something went wrong before)"; this.cbxDelete.UseVisualStyleBackColor = true; // + // cbxTrim + // + this.cbxTrim.AutoSize = true; + this.cbxTrim.Checked = true; + this.cbxTrim.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbxTrim.Location = new System.Drawing.Point(15, 309); + this.cbxTrim.Name = "cbxTrim"; + this.cbxTrim.Size = new System.Drawing.Size(476, 17); + this.cbxTrim.TabIndex = 13; + this.cbxTrim.Text = "Trim excess content from bitter smile demo (reduces h-encore app size from ~240MB" + + " to ~17MB)"; + this.cbxTrim.UseVisualStyleBackColor = true; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(593, 718); + this.Controls.Add(this.cbxTrim); this.Controls.Add(this.cbxDelete); this.Controls.Add(this.btnImport); this.Controls.Add(this.lblVersion); @@ -215,6 +230,7 @@ private void InitializeComponent() { private System.Windows.Forms.Label lblVersion; private System.Windows.Forms.Button btnImport; private System.Windows.Forms.CheckBox cbxDelete; + private System.Windows.Forms.CheckBox cbxTrim; } } diff --git a/auto h-encore/Form1.cs b/auto h-encore/Form1.cs index 64558ad..c5bc78a 100644 --- a/auto h-encore/Form1.cs +++ b/auto h-encore/Form1.cs @@ -195,6 +195,18 @@ private void btnStart_Click(object sender, EventArgs e) { return; } + if (cbxTrim.Checked) { + info("Trimming excess content from bitter smile demo..."); + string path = Reference.path_downloads + "app\\PCSG90096\\"; + FileSystem.DeleteFile(path + "resource\\movie\\Opening.mp4"); + foreach (string k in FileSystem.GetFiles(path + "resource\\sound\\bgm\\")) FileSystem.DeleteFile(k); + FileSystem.DeleteDirectory(path + "resource\\sound\\voice\\01\\", DeleteDirectoryOption.DeleteAllContents); + FileSystem.DeleteDirectory(path + "resource\\sound\\se\\", DeleteDirectoryOption.DeleteAllContents); + FileSystem.DeleteDirectory(path + "resource\\image\\bg\\", DeleteDirectoryOption.DeleteAllContents); + FileSystem.DeleteDirectory(path + "resource\\image\\tachie\\", DeleteDirectoryOption.DeleteAllContents); + info(" Done!"); + } + try { foreach (string k in FileSystem.GetFiles(Reference.path_downloads + "app\\PCSG90096\\")) { info("Moving " + k.Split('\\').Last() + " to h-encore working directory..."); @@ -297,12 +309,13 @@ private void btnStart_Click(object sender, EventArgs e) { + "1. Right click the QCMA icon in task tray and select refresh database\r\n" + "2. Connect your PS Vita to your PC using USB\r\n" + "3. Open Content Manager on your PS Vita and select Copy Content\r\n" - + " If it says you need to update your firmware, turn off Wifi on your Vita and restart the Vita\r\n" + + " If it says you need to update your firmware, turn off Wifi on your Vita and restart the Vita\r\n" + "4. In Content Manager, choose PC -> PS Vita System\r\n" + "5. Select Applications\r\n" + "6. Select PS Vita\r\n" + "7. Select h-encore and hit Copy\r\n" + "8. Run the h-encore app from the Live Area\r\n" + + " If it crashes the first time, try restarting your Vita and launching the bubble again\r\n\r\n" + "Done!"))); toggleControls(true); diff --git a/auto h-encore/Reference.cs b/auto h-encore/Reference.cs index fb57edd..0b7166f 100644 --- a/auto h-encore/Reference.cs +++ b/auto h-encore/Reference.cs @@ -6,7 +6,7 @@ namespace auto_h_encore { public static class Reference { - public static readonly string version = "0.2.0"; + public static readonly string version = "0.2.1"; public static readonly string path_hencore = Environment.CurrentDirectory + "\\data\\h-encore\\"; public static readonly string path_psvimgtools = Environment.CurrentDirectory + "\\data\\psvimgtools\\";