diff --git a/README.md b/README.md
index 3d6f8cd..e3e11f5 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ FF8_Demastered is unofficial patch for Final Fantasy VIII Remastered game by Squ
1. Just drop to your folder of Final Fantasy VIII Remastered installation.
Usually:
_D:\SteamLibrary\steamapps\common\FINAL FANTASY VIII Remastered_
+2. If it's your first run- please open FFVIII_Demaster_Manager.exe to unpacking files
## Troubleshooting
### Compiling:
diff --git a/viiidem_customlauncher/Form1.Designer.cs b/viiidem_customlauncher/Form1.Designer.cs
index bf0f816..75915e1 100644
--- a/viiidem_customlauncher/Form1.Designer.cs
+++ b/viiidem_customlauncher/Form1.Designer.cs
@@ -28,79 +28,32 @@ protected override void Dispose(bool disposing)
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
- this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.label3 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
- this.splitContainer1.Panel1.SuspendLayout();
- this.splitContainer1.Panel2.SuspendLayout();
- this.splitContainer1.SuspendLayout();
+ this.button6 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
- // splitContainer1
- //
- this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.splitContainer1.IsSplitterFixed = true;
- this.splitContainer1.Location = new System.Drawing.Point(0, 0);
- this.splitContainer1.Name = "splitContainer1";
- this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
- //
- // splitContainer1.Panel1
- //
- this.splitContainer1.Panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.splitContainer1.Panel1.Controls.Add(this.richTextBox1);
- this.splitContainer1.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel1_Paint);
- //
- // splitContainer1.Panel2
- //
- this.splitContainer1.Panel2.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
- this.splitContainer1.Panel2.Controls.Add(this.label3);
- this.splitContainer1.Panel2.Controls.Add(this.button5);
- this.splitContainer1.Panel2.Controls.Add(this.button4);
- this.splitContainer1.Panel2.Controls.Add(this.label1);
- this.splitContainer1.Panel2.Controls.Add(this.label2);
- this.splitContainer1.Panel2.Controls.Add(this.button3);
- this.splitContainer1.Panel2.Controls.Add(this.button2);
- this.splitContainer1.Panel2.Controls.Add(this.button1);
- this.splitContainer1.Size = new System.Drawing.Size(932, 610);
- this.splitContainer1.SplitterDistance = 460;
- this.splitContainer1.TabIndex = 0;
- //
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.richTextBox1.ForeColor = System.Drawing.SystemColors.Window;
- this.richTextBox1.Location = new System.Drawing.Point(12, 247);
+ this.richTextBox1.Location = new System.Drawing.Point(160, 12);
this.richTextBox1.Name = "richTextBox1";
- this.richTextBox1.Size = new System.Drawing.Size(385, 202);
+ this.richTextBox1.Size = new System.Drawing.Size(438, 165);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.ForeColor = System.Drawing.Color.DarkRed;
- this.label3.Location = new System.Drawing.Point(12, 39);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(308, 104);
- this.label3.TabIndex = 5;
- this.label3.Text = resources.GetString("label3.Text");
- //
// button5
//
this.button5.BackgroundImage = global::viiidem_customlauncher.Properties.Resources.blue_off;
this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button5.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button5.ForeColor = System.Drawing.SystemColors.Control;
- this.button5.Location = new System.Drawing.Point(639, 83);
+ this.button5.Location = new System.Drawing.Point(12, 69);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(142, 51);
this.button5.TabIndex = 4;
@@ -116,7 +69,7 @@ private void InitializeComponent()
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button4.Font = new System.Drawing.Font("Nina", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button4.ForeColor = System.Drawing.SystemColors.Control;
- this.button4.Location = new System.Drawing.Point(639, 30);
+ this.button4.Location = new System.Drawing.Point(12, 12);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(142, 51);
this.button4.TabIndex = 3;
@@ -126,35 +79,13 @@ private void InitializeComponent()
this.button4.MouseEnter += new System.EventHandler(this.buttonCallback_blueOn);
this.button4.MouseLeave += new System.EventHandler(this.buttonCallback_blueOff);
//
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.BackColor = System.Drawing.Color.Transparent;
- this.label1.ForeColor = System.Drawing.SystemColors.ControlDark;
- this.label1.Location = new System.Drawing.Point(12, 0);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(109, 13);
- this.label1.TabIndex = 1;
- this.label1.Text = "Demaster version: %d";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.BackColor = System.Drawing.Color.Transparent;
- this.label2.ForeColor = System.Drawing.SystemColors.ButtonShadow;
- this.label2.Location = new System.Drawing.Point(12, 13);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(109, 13);
- this.label2.TabIndex = 2;
- this.label2.Text = "Launcher version: %d";
- //
// button3
//
this.button3.BackgroundImage = global::viiidem_customlauncher.Properties.Resources.silver_off;
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button3.Font = new System.Drawing.Font("Nina", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button3.ForeColor = System.Drawing.SystemColors.Control;
- this.button3.Location = new System.Drawing.Point(787, 83);
+ this.button3.Location = new System.Drawing.Point(370, 185);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(142, 51);
this.button3.TabIndex = 2;
@@ -170,11 +101,11 @@ private void InitializeComponent()
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button2.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button2.ForeColor = System.Drawing.SystemColors.Control;
- this.button2.Location = new System.Drawing.Point(491, 83);
+ this.button2.Location = new System.Drawing.Point(160, 183);
this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(142, 51);
+ this.button2.Size = new System.Drawing.Size(204, 51);
this.button2.TabIndex = 1;
- this.button2.Text = "FFVIII OPTIONS";
+ this.button2.Text = "Open original config folder";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
this.button2.MouseEnter += new System.EventHandler(this.buttonCallback_silver);
@@ -182,53 +113,65 @@ private void InitializeComponent()
//
// button1
//
- this.button1.BackColor = System.Drawing.Color.DarkOrange;
- this.button1.BackgroundImage = global::viiidem_customlauncher.Properties.Resources.orange_off;
+ this.button1.BackgroundImage = global::viiidem_customlauncher.Properties.Resources.blue_off;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.button1.Font = new System.Drawing.Font("Nina", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
+ this.button1.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button1.ForeColor = System.Drawing.SystemColors.Control;
- this.button1.Location = new System.Drawing.Point(328, 30);
+ this.button1.Location = new System.Drawing.Point(12, 126);
this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(157, 104);
- this.button1.TabIndex = 0;
- this.button1.Text = "PLAY";
- this.button1.UseVisualStyleBackColor = false;
+ this.button1.Size = new System.Drawing.Size(142, 51);
+ this.button1.TabIndex = 5;
+ this.button1.Text = "DOWNLOAD UPDATE (AUTO)";
+ this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
- this.button1.MouseEnter += new System.EventHandler(this.buttonCallback_SetOrange);
- this.button1.MouseLeave += new System.EventHandler(this.buttonCallback_setOrangeOff);
+ this.button1.MouseEnter += new System.EventHandler(this.buttonCallback_blueOn);
+ this.button1.MouseLeave += new System.EventHandler(this.buttonCallback_blueOff);
+ //
+ // button6
+ //
+ this.button6.BackgroundImage = global::viiidem_customlauncher.Properties.Resources.blue_off;
+ this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.button6.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
+ this.button6.ForeColor = System.Drawing.SystemColors.Control;
+ this.button6.Location = new System.Drawing.Point(12, 183);
+ this.button6.Name = "button6";
+ this.button6.Size = new System.Drawing.Size(142, 51);
+ this.button6.TabIndex = 6;
+ this.button6.Text = "DOWNLOAD UPDATE (MANUAL)";
+ this.button6.UseVisualStyleBackColor = true;
+ this.button6.Click += new System.EventHandler(this.button6_Click);
+ this.button6.MouseEnter += new System.EventHandler(this.buttonCallback_blueOn);
+ this.button6.MouseLeave += new System.EventHandler(this.buttonCallback_blueOff);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(932, 610);
- this.Controls.Add(this.splitContainer1);
+ this.ClientSize = new System.Drawing.Size(604, 242);
+ this.Controls.Add(this.button6);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.richTextBox1);
+ this.Controls.Add(this.button5);
+ this.Controls.Add(this.button4);
+ this.Controls.Add(this.button3);
+ this.Controls.Add(this.button2);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "Form1";
- this.Text = "FINAL FANTASY VIII Remastered LAUNCHER - Demaster unofficial patch by Maki";
- this.splitContainer1.Panel1.ResumeLayout(false);
- this.splitContainer1.Panel2.ResumeLayout(false);
- this.splitContainer1.Panel2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
- this.splitContainer1.ResumeLayout(false);
+ this.Text = "FINAL FANTASY VIII Remastered LAUNCHER - Demaster Mod Manager";
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Button button1;
private System.Windows.Forms.RichTextBox richTextBox1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
- private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button6;
}
}
diff --git a/viiidem_customlauncher/Form1.cs b/viiidem_customlauncher/Form1.cs
index 81ed2a0..40eba10 100644
--- a/viiidem_customlauncher/Form1.cs
+++ b/viiidem_customlauncher/Form1.cs
@@ -16,142 +16,64 @@ namespace viiidem_customlauncher
public partial class Form1 : Form
{
Bitmap logoBmp;
- VanillaOptions opt = null;
- public Form1(bool bOffline, bool bForcePlay)
+ public Form1()
{
- WhatIsWrongWithThisLauncher.Tellme("form1 start");
- if (bForcePlay)
- LaunchGame();
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
- if(!bOffline)
- GetOfficialAssets();
- WhatIsWrongWithThisLauncher.Tellme("init component");
InitializeComponent();
- WhatIsWrongWithThisLauncher.Tellme("opt is now created");
- opt = new VanillaOptions();
- opt.ReRead();
- if(!bOffline)
- CheckUpdates();
CheckUnpacked();
-
-
- if(File.Exists("bg_top.jpg"))
- {
- FileInfo fi = new FileInfo("bg_top.jpg");
- if (fi.Length != 0)
- {
- splitContainer1.Panel1.BackgroundImage = Image.FromFile("bg_top.jpg");
- splitContainer1.Panel1.BackgroundImageLayout = ImageLayout.Stretch;
- }
- }
- if (File.Exists("logo_top.png"))
- {
- FileInfo fi = new FileInfo("logo_top.png");
- if (fi.Length != 0)
- {
- logoBmp = new Bitmap("logo_top.png");
- }
- }
-
}
string gitStatus = string.Empty;
- private void GetOfficialAssets()
- {
- WhatIsWrongWithThisLauncher.Tellme("get official asset");
- try
- {
- gitStatus = DownloadString("https://raw.githubusercontent.com/MaKiPL/FF8_demastered/master/status");
- if (!File.Exists("bg_top.jpg") || new FileInfo("bg_top.jpg").Length == 0)
- DownloadFile("https://ffviiiremastered.square-enix-games.com/images/home/bg_top.jpg");
- if (!File.Exists("logo_top.png") || new FileInfo("logo_top.png").Length == 0)
- DownloadFile("https://ffviiiremastered.square-enix-games.com/images/home/logo_top.png");
- }
- catch(Exception e)
- {
- WhatIsWrongWithThisLauncher.Tellme($"get official exp - e was {e.Message}");
- }
- }
-
bool bAlreadyUpdated = false;
private void CheckUpdates()
{
- WhatIsWrongWithThisLauncher.Tellme("check updates");
bAlreadyUpdated = false;
if(!File.Exists("demaster.conf"))
{
- WhatIsWrongWithThisLauncher.Tellme("no demaster.conf");
CreateNewConfFile();
ForceUpdate();
bAlreadyUpdated = true;
}
if (!File.Exists("ff8_demaster.dll"))
{
- WhatIsWrongWithThisLauncher.Tellme("no demaster.dll");
ForceUpdate();
bAlreadyUpdated = true;
}
else if(new FileInfo("ff8_demaster.dll").Length == 0)
{
- WhatIsWrongWithThisLauncher.Tellme("demaster dll is 0");
ForceUpdate();
bAlreadyUpdated = true;
}
- WhatIsWrongWithThisLauncher.Tellme("pre dem.conf read");
string[] confReader = File.ReadAllLines("demaster.conf");
- if(confReader.Length>5)
- {
- WhatIsWrongWithThisLauncher.Tellme("dem.conf is bigger than 5");
- string getVersion = confReader[1].TrimStart(';');
- string serverVersion = gitStatus.Split('\n')[0];
- if (getVersion != serverVersion)
- {
- WhatIsWrongWithThisLauncher.Tellme("get is not server");
- ForceUpdate();
- bAlreadyUpdated = true;
- confReader[1] = $";{serverVersion}";
- File.WriteAllLines("demaster.conf", confReader);
- }
- }
- else
- {
- WhatIsWrongWithThisLauncher.Tellme("conf is wrong");
- CreateNewConfFile();
- ForceUpdate();
+ if(confReader.Length>5)
+ {
+ ForceUpdate();
bAlreadyUpdated = true;
- }
-
- if(!string.IsNullOrWhiteSpace(gitStatus))
+ }
+ else
{
- WhatIsWrongWithThisLauncher.Tellme("git status is not empty");
- string[] op = gitStatus.Split('\n');
- label1.Text = $"demaster version: {op[0]}";
- label2.Text = $"launcher version: {op[1]}";
- richTextBox1.Text = op[2].Replace("\\n", Environment.NewLine);
+ CreateNewConfFile();
+ ForceUpdate();
+ bAlreadyUpdated = true;
}
}
private void ForceUpdate()
{
- WhatIsWrongWithThisLauncher.Tellme("forceupdate()");
if (bAlreadyUpdated)
- {
- WhatIsWrongWithThisLauncher.Tellme("forceupdate- already updated");
return;
- }
- WhatIsWrongWithThisLauncher.Tellme("force udpate- dll dl");
+ richTextBox1.AppendText("Downloading ff8_demaster.dll from https://github.com/MaKiPL/FF8_demastered/raw/master/ff8_demaster.dll \n");
DownloadFile("https://github.com/MaKiPL/FF8_demastered/raw/master/ff8_demaster.dll");
if (File.Exists("ff8_demaster.dll"))
{
- WhatIsWrongWithThisLauncher.Tellme("file exists ff8_demaster");
if (new FileInfo("ff8_demaster.dll").Length == 0)
MessageBox.Show("Update ERROR! Please download manually from github!");
else
- MessageBox.Show($"Succesfully updated to {gitStatus.Split('\n')[0]}");
+ MessageBox.Show($"Succesfully downloaded newest version from Github!");
}
else
MessageBox.Show("Update ERROR! Please download manually from github!");
@@ -159,106 +81,53 @@ private void ForceUpdate()
private void CreateNewConfFile()
{
- WhatIsWrongWithThisLauncher.Tellme("create new conffile");
+ richTextBox1.AppendText("Downloading demaster.conf from: https://raw.githubusercontent.com/MaKiPL/FF8_demastered/master/demaster.conf \n");
DownloadFile("https://raw.githubusercontent.com/MaKiPL/FF8_demastered/master/demaster.conf");
}
private void CheckUnpacked()
{
- WhatIsWrongWithThisLauncher.Tellme("checkunpacked");
bool bUnpackedAllSuccess = true;
//to test if basically unpacked we basically test three files- audio.dat;
//get some music because why not, also check disk1 and if wrong_disk belongs for additional file
if (!Directory.Exists("DEMASTER_EXP"))
- {
- WhatIsWrongWithThisLauncher.Tellme("no directory checkunpacked");
bUnpackedAllSuccess = false;
- }
else
{
if (!File.Exists("DEMASTER_EXP\\data\\disk\\disk1"))
- {
- WhatIsWrongWithThisLauncher.Tellme("check unpacked no disk1 ");
bUnpackedAllSuccess = false;
- }
if (!File.Exists("DEMASTER_EXP\\data\\disk\\wrong_disk"))
- {
- WhatIsWrongWithThisLauncher.Tellme("check unpacked no wrong_disk ");
bUnpackedAllSuccess = false;
- }
if (!File.Exists("DEMASTER_EXP\\data\\sound\\audio.dat"))
- {
bUnpackedAllSuccess = false;
- WhatIsWrongWithThisLauncher.Tellme("check unpacked no audio,dat ");
- }
if (!File.Exists("DEMASTER_EXP\\textures\\null.png"))
- {
bUnpackedAllSuccess = false;
- WhatIsWrongWithThisLauncher.Tellme("check unpacked no null ");
- }
}
if (!bUnpackedAllSuccess)
- {
- WhatIsWrongWithThisLauncher.Tellme("!bunpackedallsuccess");
- zzz.UnpackAll("DEMASTER_EXP");
- }
+ if (MessageBox.Show("We detected you don't have unpacked files to DEMASTER_EXP catalogue. We can do it automatically. Just click 'Yes'. If not, you can always do it in the menu. This message will disappear when the files will be detected as unpacked", "Confirm files re-unpack", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+ zzz.UnpackAll("DEMASTER_EXP");
}
private void DownloadFile(string uri)
{
- WhatIsWrongWithThisLauncher.Tellme($"download file uri is {uri}");
try
{
using (WebClient wc = new WebClient())
{
- WhatIsWrongWithThisLauncher.Tellme("wc created downloadfile");
wc.DownloadFile(uri, Path.GetFileName(uri));
- WhatIsWrongWithThisLauncher.Tellme("wc downloadfile ok");
}
}
catch(Exception e)
{
- WhatIsWrongWithThisLauncher.Tellme($"downloadfile catch- e is {e.Message}");
- }
- }
-
- private string DownloadString(string uri)
- {
- string localn;
- WhatIsWrongWithThisLauncher.Tellme($"downlaod string: {uri}");
- using (WebClient wc = new WebClient() {CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore) })
- {
- WhatIsWrongWithThisLauncher.Tellme("wc created- downloadstring");
- localn =wc.DownloadString(uri);
+ MessageBox.Show(e.Message);
}
- WhatIsWrongWithThisLauncher.Tellme("wc success- download ok");
- return localn;
- }
-
- private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
- {
- WhatIsWrongWithThisLauncher.Tellme("panel paint- logo make transparent");
- logoBmp.MakeTransparent();
- WhatIsWrongWithThisLauncher.Tellme("pre graphic draw paint panel");
- e.Graphics.DrawImage(logoBmp, 0,0, logoBmp.Width/2, logoBmp.Height/2);
}
private void exitButton(object sender, EventArgs e)
{
- WhatIsWrongWithThisLauncher.Tellme("exit button");
Close();
}
- private void buttonCallback_SetOrange(object sender, EventArgs e)
- {
- (sender as Button).BackgroundImage = Properties.Resources.orange;
- }
-
- private void buttonCallback_setOrangeOff(object sender, EventArgs e)
- {
- (sender as Button).BackgroundImage = Properties.Resources.orange_off;
- }
-
private void buttonCallback_silver(object sender, EventArgs e)
{
(sender as Button).BackgroundImage = Properties.Resources.silver_on;
@@ -287,74 +156,27 @@ private void button4_Click(object sender, EventArgs e)
private void button2_Click(object sender, EventArgs e)
{
- WhatIsWrongWithThisLauncher.Tellme("pre opt reread - button2");
- opt.ReRead();
- WhatIsWrongWithThisLauncher.Tellme("pre opt show - button2");
- opt.ShowDialog();
+ string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
+ path = Path.Combine(path, "My Games", "FINAL FANTASY VIII Remastered", "Steam");
+ Process.Start("explorer.exe", path);
}
- private void button1_Click(object sender, EventArgs e)
+ private void button5_Click(object sender, EventArgs e)
{
- WhatIsWrongWithThisLauncher.Tellme("pre alunchgame - button1");
- LaunchGame();
+ using (DemasterOpt dopt = new DemasterOpt())
+ dopt.ShowDialog();
}
- private void LaunchGame()
+ private void button6_Click(object sender, EventArgs e)
{
- WhatIsWrongWithThisLauncher.Tellme("launchgame()");
- string text = "FFVIII.exe";
- bool result = true;
- ProcessStartInfo processStartInfo = new ProcessStartInfo(text);
- processStartInfo.UseShellExecute = true;
- processStartInfo.ErrorDialog = true;
- processStartInfo.ErrorDialogParentHandle = base.Handle;
- try
- {
- WhatIsWrongWithThisLauncher.Tellme("launchame:: try started");
- if (!File.Exists(text))
- {
- WhatIsWrongWithThisLauncher.Tellme("file not exist launchgame");
- string message = new FileNotFoundException().Message;
- }
- Process process;
- if (opt != null)
- {
- WhatIsWrongWithThisLauncher.Tellme("opt is not null");
- if (opt.language == "JP")
- {
- WhatIsWrongWithThisLauncher.Tellme("opt language was jp so starting parametrized");
- processStartInfo.Arguments = "jp";
- process = Process.Start(processStartInfo);
- }
- else
- {
- WhatIsWrongWithThisLauncher.Tellme("opt not jp, so starting non-parametrized");
- process = Process.Start(processStartInfo);
- }
- }
- else
- {
- WhatIsWrongWithThisLauncher.Tellme("opt is not null so we start the process");
- process = Process.Start(processStartInfo);
- }
- WhatIsWrongWithThisLauncher.Tellme("wait for exit proc");
- process.WaitForExit();
- }
- catch(Exception e)
- {
- WhatIsWrongWithThisLauncher.Tellme($"try wrecked and message is {e.Message}");
- ;
- }
+ richTextBox1.AppendText("Opening url with default browser: https://github.com/MaKiPL/FF8_demastered/blob/master/ff8_demaster.dll \n");
+ System.Diagnostics.Process.Start("https://github.com/MaKiPL/FF8_demastered/blob/master/ff8_demaster.dll");
}
- private void button5_Click(object sender, EventArgs e)
+ private void button1_Click(object sender, EventArgs e)
{
- WhatIsWrongWithThisLauncher.Tellme("button5_click");
- using (DemasterOpt dopt = new DemasterOpt())
- {
- WhatIsWrongWithThisLauncher.Tellme("pre doptshowdialog");
- dopt.ShowDialog();
- }
+ richTextBox1.AppendText("Trying auto-update...\n");
+ CheckUpdates();
}
}
}
diff --git a/viiidem_customlauncher/Form1.resx b/viiidem_customlauncher/Form1.resx
index d8d4a53..1af7de1 100644
--- a/viiidem_customlauncher/Form1.resx
+++ b/viiidem_customlauncher/Form1.resx
@@ -117,14 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- © 1999, 2019 SQUARE ENIX CO., LTD. All Rights Reserved.
-CHARACTER DESIGN: TETSUYA NOMURA
-LOGO ILLUSTRATION:© 1999 YOSHITAKA AMANO
-
-Demaster project is in no way affiliated with SQUARE ENIX
-Demaster DOES NOT use official works by SQUARE ENIX
-This launcher downloads media from official SquareEnix website
-Demaster is made by Maki (makipol@gmail.com)
-
\ No newline at end of file
diff --git a/viiidem_customlauncher/Program.cs b/viiidem_customlauncher/Program.cs
index d51932f..f350855 100644
--- a/viiidem_customlauncher/Program.cs
+++ b/viiidem_customlauncher/Program.cs
@@ -14,30 +14,9 @@ static class Program
[STAThread]
static void Main(string[] args)
{
- WhatIsWrongWithThisLauncher.Tellme("PROGRAM START BAREBONE");
- bool bOffline = false;
- bool bForcePlay = false;
- if (args.Length > 0)
- {
- for(int i = 0; i
- /// Wyszukuje zlokalizowany zasób typu System.Drawing.Bitmap.
- ///
- internal static System.Drawing.Bitmap orange {
- get {
- object obj = ResourceManager.GetObject("orange", resourceCulture);
- return ((System.Drawing.Bitmap)(obj));
- }
- }
-
- ///
- /// Wyszukuje zlokalizowany zasób typu System.Drawing.Bitmap.
- ///
- internal static System.Drawing.Bitmap orange_off {
- get {
- object obj = ResourceManager.GetObject("orange_off", resourceCulture);
- return ((System.Drawing.Bitmap)(obj));
- }
- }
-
///
/// Wyszukuje zlokalizowany zasób typu System.Drawing.Bitmap.
///
diff --git a/viiidem_customlauncher/Properties/Resources.resx b/viiidem_customlauncher/Properties/Resources.resx
index aa11055..88055be 100644
--- a/viiidem_customlauncher/Properties/Resources.resx
+++ b/viiidem_customlauncher/Properties/Resources.resx
@@ -124,12 +124,6 @@
..\Resources\blue_on.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\orange.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\Resources\orange_off.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\silver_off.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
diff --git a/viiidem_customlauncher/Resources/orange.png b/viiidem_customlauncher/Resources/orange.png
deleted file mode 100644
index 177cfb8..0000000
Binary files a/viiidem_customlauncher/Resources/orange.png and /dev/null differ
diff --git a/viiidem_customlauncher/Resources/orange_off.png b/viiidem_customlauncher/Resources/orange_off.png
deleted file mode 100644
index 4348a70..0000000
Binary files a/viiidem_customlauncher/Resources/orange_off.png and /dev/null differ
diff --git a/viiidem_customlauncher/VanillaOptions.Designer.cs b/viiidem_customlauncher/VanillaOptions.Designer.cs
deleted file mode 100644
index 1232fc4..0000000
--- a/viiidem_customlauncher/VanillaOptions.Designer.cs
+++ /dev/null
@@ -1,430 +0,0 @@
-namespace viiidem_customlauncher
-{
- partial class VanillaOptions
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.label9 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.label10 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.trackBar1 = new System.Windows.Forms.TrackBar();
- this.label12 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.comboBox2 = new System.Windows.Forms.ComboBox();
- this.comboBox3 = new System.Windows.Forms.ComboBox();
- this.comboBox4 = new System.Windows.Forms.ComboBox();
- this.comboBox5 = new System.Windows.Forms.ComboBox();
- this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.label14 = new System.Windows.Forms.Label();
- this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
- this.label15 = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label1.Location = new System.Drawing.Point(12, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(69, 19);
- this.label1.TabIndex = 0;
- this.label1.Text = "Language";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label2.Location = new System.Drawing.Point(28, 42);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(114, 16);
- this.label2.TabIndex = 1;
- this.label2.Text = "Select Text Language";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label3.Location = new System.Drawing.Point(28, 105);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(80, 16);
- this.label3.TabIndex = 3;
- this.label3.Text = "Master Volume";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label4.Location = new System.Drawing.Point(12, 72);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(45, 19);
- this.label4.TabIndex = 2;
- this.label4.Text = "Audio";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label5.Location = new System.Drawing.Point(28, 209);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(57, 16);
- this.label5.TabIndex = 5;
- this.label5.Text = "Resolution";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Font = new System.Drawing.Font("Nina", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label6.Location = new System.Drawing.Point(12, 176);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(63, 19);
- this.label6.TabIndex = 4;
- this.label6.Text = "Graphics";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label7.Location = new System.Drawing.Point(27, 265);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(74, 16);
- this.label7.TabIndex = 6;
- this.label7.Text = "Display Mode";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label8.Location = new System.Drawing.Point(27, 292);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(43, 16);
- this.label8.TabIndex = 7;
- this.label8.Text = "Display";
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(47, 407);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 8;
- this.button1.Text = "OK";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(145, 407);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(75, 23);
- this.button2.TabIndex = 9;
- this.button2.Text = "Cancel";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Font = new System.Drawing.Font("Nina", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label9.Location = new System.Drawing.Point(11, 433);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(118, 13);
- this.label9.TabIndex = 10;
- this.label9.Text = "This window was recreated";
- //
- // comboBox1
- //
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "日本語",
- "English",
- "Français",
- "Italiano",
- "Deutsch",
- "Español"});
- this.comboBox1.Location = new System.Drawing.Point(179, 41);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(121, 21);
- this.comboBox1.TabIndex = 11;
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label10.Location = new System.Drawing.Point(27, 321);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(124, 16);
- this.label10.TabIndex = 12;
- this.label10.Text = "Brightness (default: 50)";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label11.Location = new System.Drawing.Point(27, 352);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(78, 16);
- this.label11.TabIndex = 13;
- this.label11.Text = "Anti-alias level";
- //
- // trackBar1
- //
- this.trackBar1.Location = new System.Drawing.Point(31, 128);
- this.trackBar1.Maximum = 100;
- this.trackBar1.Name = "trackBar1";
- this.trackBar1.Size = new System.Drawing.Size(190, 45);
- this.trackBar1.TabIndex = 14;
- this.trackBar1.TickFrequency = 10;
- this.trackBar1.TickStyle = System.Windows.Forms.TickStyle.Both;
- this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label12.Location = new System.Drawing.Point(11, 140);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(13, 16);
- this.label12.TabIndex = 15;
- this.label12.Text = "-";
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label13.Location = new System.Drawing.Point(227, 140);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(16, 16);
- this.label13.TabIndex = 16;
- this.label13.Text = "+";
- //
- // textBox1
- //
- this.textBox1.Enabled = false;
- this.textBox1.Location = new System.Drawing.Point(250, 136);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(50, 20);
- this.textBox1.TabIndex = 17;
- this.textBox1.Text = "100";
- //
- // comboBox2
- //
- this.comboBox2.FormattingEnabled = true;
- this.comboBox2.Location = new System.Drawing.Point(179, 204);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(121, 21);
- this.comboBox2.TabIndex = 18;
- this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
- //
- // comboBox3
- //
- this.comboBox3.FormattingEnabled = true;
- this.comboBox3.Items.AddRange(new object[] {
- "Full-screen",
- "Borderless",
- "Windowed"});
- this.comboBox3.Location = new System.Drawing.Point(178, 260);
- this.comboBox3.Name = "comboBox3";
- this.comboBox3.Size = new System.Drawing.Size(121, 21);
- this.comboBox3.TabIndex = 19;
- //
- // comboBox4
- //
- this.comboBox4.FormattingEnabled = true;
- this.comboBox4.Location = new System.Drawing.Point(178, 287);
- this.comboBox4.Name = "comboBox4";
- this.comboBox4.Size = new System.Drawing.Size(121, 21);
- this.comboBox4.TabIndex = 20;
- //
- // comboBox5
- //
- this.comboBox5.FormattingEnabled = true;
- this.comboBox5.Items.AddRange(new object[] {
- "DISABLED",
- "ENABLED (DEFAULT)",
- "2 (??)",
- "3 (??)",
- "4 (??)"});
- this.comboBox5.Location = new System.Drawing.Point(178, 347);
- this.comboBox5.Name = "comboBox5";
- this.comboBox5.Size = new System.Drawing.Size(121, 21);
- this.comboBox5.TabIndex = 21;
- //
- // numericUpDown1
- //
- this.numericUpDown1.Location = new System.Drawing.Point(178, 317);
- this.numericUpDown1.Name = "numericUpDown1";
- this.numericUpDown1.Size = new System.Drawing.Size(120, 20);
- this.numericUpDown1.TabIndex = 22;
- this.numericUpDown1.Value = new decimal(new int[] {
- 50,
- 0,
- 0,
- 0});
- //
- // textBox2
- //
- this.textBox2.Location = new System.Drawing.Point(178, 232);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(46, 20);
- this.textBox2.TabIndex = 23;
- //
- // textBox3
- //
- this.textBox3.Location = new System.Drawing.Point(249, 231);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(50, 20);
- this.textBox3.TabIndex = 24;
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(231, 235);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(12, 13);
- this.label14.TabIndex = 25;
- this.label14.Text = "x";
- //
- // numericUpDown2
- //
- this.numericUpDown2.Location = new System.Drawing.Point(178, 374);
- this.numericUpDown2.Maximum = new decimal(new int[] {
- 8,
- 0,
- 0,
- 0});
- this.numericUpDown2.Name = "numericUpDown2";
- this.numericUpDown2.Size = new System.Drawing.Size(120, 20);
- this.numericUpDown2.TabIndex = 27;
- this.numericUpDown2.Value = new decimal(new int[] {
- 4,
- 0,
- 0,
- 0});
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Font = new System.Drawing.Font("Nina", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label15.Location = new System.Drawing.Point(27, 378);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(78, 16);
- this.label15.TabIndex = 26;
- this.label15.Text = "Camera speed";
- //
- // VanillaOptions
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(308, 454);
- this.Controls.Add(this.numericUpDown2);
- this.Controls.Add(this.label15);
- this.Controls.Add(this.label14);
- this.Controls.Add(this.textBox3);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.numericUpDown1);
- this.Controls.Add(this.comboBox5);
- this.Controls.Add(this.comboBox4);
- this.Controls.Add(this.comboBox3);
- this.Controls.Add(this.comboBox2);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.label13);
- this.Controls.Add(this.label12);
- this.Controls.Add(this.trackBar1);
- this.Controls.Add(this.label11);
- this.Controls.Add(this.label10);
- this.Controls.Add(this.comboBox1);
- this.Controls.Add(this.label9);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
- this.MaximizeBox = false;
- this.Name = "VanillaOptions";
- this.Text = "Options";
- ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.ComboBox comboBox1;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.TrackBar trackBar1;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.ComboBox comboBox2;
- private System.Windows.Forms.ComboBox comboBox3;
- private System.Windows.Forms.ComboBox comboBox4;
- private System.Windows.Forms.ComboBox comboBox5;
- private System.Windows.Forms.NumericUpDown numericUpDown1;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.NumericUpDown numericUpDown2;
- private System.Windows.Forms.Label label15;
- }
-}
\ No newline at end of file
diff --git a/viiidem_customlauncher/VanillaOptions.cs b/viiidem_customlauncher/VanillaOptions.cs
deleted file mode 100644
index 9ef6606..0000000
--- a/viiidem_customlauncher/VanillaOptions.cs
+++ /dev/null
@@ -1,456 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using Steamworks;
-
-namespace viiidem_customlauncher
-{
- public partial class VanillaOptions : Form
- {
- int width, height, mastervol, bgmvol, screenmode, display, cameraspeed, brightness, antialiaslevel, firstboot;
-
- public string language = "EN";
- string configPath;
-
- //this is write command
- private void button1_Click(object sender, EventArgs e)
- {
-
- WhatIsWrongWithThisLauncher.Tellme("opt button1");
- width = int.Parse(textBox2.Text);
- height = int.Parse(textBox3.Text);
- mastervol = trackBar1.Value;
- bgmvol = trackBar1.Value;
- screenmode = comboBox3.SelectedIndex;
- string getDisplayNumber = comboBox4.SelectedItem.ToString().Substring(1,1);
- display = int.Parse(getDisplayNumber);
- cameraspeed = (int)numericUpDown2.Value;
- brightness = (int)numericUpDown1.Value;
- antialiaslevel = comboBox5.SelectedIndex;
- firstboot = 0;
- language = ReverseGetLangIdx(comboBox1.SelectedIndex);
-
- using (StreamWriter sw = new StreamWriter(configPath, false, Encoding.GetEncoding("Shift_JIS")))
- {
- sw.WriteLine($"width\t\t\t{width}");
- sw.WriteLine($"height\t\t\t{height}");
- sw.WriteLine($"language\t\t{language}");
- sw.WriteLine($"mastervol\t\t{mastervol}");
- sw.WriteLine($"bgmvol\t\t\t{bgmvol}");
- sw.WriteLine($"screenmode\t\t{screenmode}");
- sw.WriteLine($"display\t\t\t{display}");
- sw.WriteLine($"cameraspeed\t\t{cameraspeed}");
- sw.WriteLine($"brightness\t\t{brightness}");
- sw.WriteLine($"antialiaslevel\t{antialiaslevel}");
- sw.WriteLine($"firstboot\t{firstboot}");
- }
-
- WhatIsWrongWithThisLauncher.Tellme("opt wrote");
- this.Close();
- }
-
- internal void ReRead()
- {
- WhatIsWrongWithThisLauncher.Tellme("opt reread init");
- Init();
- WhatIsWrongWithThisLauncher.Tellme("opt reread continue - now reat configpath");
- //read here
- if (!File.Exists(configPath))
- return;
- WhatIsWrongWithThisLauncher.Tellme("config path exists- so continue");
- string[] configFile = File.ReadAllLines(configPath, Encoding.GetEncoding("Shift_JIS"));
- WhatIsWrongWithThisLauncher.Tellme("configfile now has all lines");
- foreach (string line in configFile)
- {
- WhatIsWrongWithThisLauncher.Tellme($"parse line- {line}");
- string[] lineSplitted = line.Split('\t');
- WhatIsWrongWithThisLauncher.Tellme("line splitted");
- string name = lineSplitted[0];
- string param = lineSplitted.Last();
- WhatIsWrongWithThisLauncher.Tellme($"name was {name} and param was {param}");
- switch (name)
- {
- case "width":
- width = int.Parse(param);
- break;
- case "height":
- height = int.Parse(param);
- break;
- case "language":
- language = param;
- break;
- case "mastervol":
- mastervol = int.Parse(param);
- break;
- case "bgmvol":
- bgmvol = int.Parse(param);
- break;
- case "screenmode":
- screenmode = int.Parse(param);
- break;
- case "display":
- display = int.Parse(param);
- break;
- case "cameraspeed":
- cameraspeed = int.Parse(param);
- break;
- case "brightness":
- brightness = int.Parse(param);
- break;
- case "antialiaslevel":
- antialiaslevel = int.Parse(param);
- break;
- case "firstboot":
- firstboot = int.Parse(param);
- break;
- }
- }
- WhatIsWrongWithThisLauncher.Tellme("combo get lang");
- comboBox1.SelectedIndex = getLangIdx(language);
- WhatIsWrongWithThisLauncher.Tellme($"combo is index {comboBox1.SelectedIndex}");
- if (mastervol > 100 || mastervol < 0)
- mastervol = 100; //safe
- trackBar1.Value = mastervol;
- if (brightness < 0 || brightness > 100)
- brightness = 50;
- numericUpDown1.Value = brightness;
-
- var screens = Screen.AllScreens;
- WhatIsWrongWithThisLauncher.Tellme($"screen was {screens.Length}");
-
-
- comboBox4.Items.Clear();
- for (int i = 0; i < screens.Length; i++)
- comboBox4.Items.Add($"[{i}]{(screens[i].Primary ? " PRIMARY" : "")}");
-
- if (display > comboBox4.Items.Count)
- display = 0;
- comboBox4.SelectedIndex = display;
- if (antialiaslevel > comboBox5.Items.Count || antialiaslevel < 0)
- antialiaslevel = 0;
- comboBox5.SelectedIndex = antialiaslevel;
- WhatIsWrongWithThisLauncher.Tellme("after antialias");
-
-
- DEVMODE vDevMode = new DEVMODE();
- int __i = 0;
- resolutions = new List();
- while (EnumDisplaySettings(null, __i, ref vDevMode))
- {
- resolutions.Add(new res()
- {
- width = vDevMode.dmPelsWidth,
- height = vDevMode.dmPelsHeight,
- bpp = vDevMode.dmBitsPerPel,
- freq = vDevMode.dmDisplayFrequency
- });
- __i++;
- }
- foreach (var vidMode in resolutions)
- comboBox2.Items.Add($"{vidMode.width}x{vidMode.height}x{vidMode.bpp}x{vidMode.freq}");
-
- WhatIsWrongWithThisLauncher.Tellme("after devmode");
- for (int i = 0; i < comboBox2.Items.Count; i++)
- {
- if (i == resolutions.Count)
- break;
- res _res = resolutions[i];
- if (width == _res.width && height == _res.height)
- {
- comboBox2.SelectedIndex = i;
- break;
- }
- }
-
- WhatIsWrongWithThisLauncher.Tellme("after combobox2 res");
- if (screenmode < 0 || screenmode > comboBox3.Items.Count)
- screenmode = 0;
- comboBox3.SelectedIndex = screenmode;
- if (cameraspeed < 0 || cameraspeed > 8)
- cameraspeed = 4;
- numericUpDown2.Value = cameraspeed;
- WhatIsWrongWithThisLauncher.Tellme("finished at reread");
- }
-
- private string ReverseGetLangIdx(int idx)
- {
- switch (idx)
- {
- case 0:
- return "JP";
- case 1:
- return "EN";
- case 2:
- return "FR";
- case 3:
- return "IT";
- case 4:
- return "DE";
- case 5:
- return "ES";
- default:
- goto case 0;
- }
- }
-
- private void button2_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
- private void trackBar1_Scroll(object sender, EventArgs e)
- {
- textBox1.Text = (sender as TrackBar).Value.ToString();
- }
-
-
- public void Init()
- {
- WhatIsWrongWithThisLauncher.Tellme("opt init- probably here is shit");
- bool bDefaultValue = false;
- AppId_t applicationId = (AppId_t)1026680u;
- try
- {
- WhatIsWrongWithThisLauncher.Tellme("opt try init");
- if (!SteamAPI.Init())
- {
- WhatIsWrongWithThisLauncher.Tellme("steam init error- don't know why");
- MessageBox.Show("There was an error with SteamApi Init. You might have issues with config. Using first folder instead in MyGames");
- bDefaultValue = true;
- }
- }
- catch(Exception e)
- {
- WhatIsWrongWithThisLauncher.Tellme($"steam init error- don't know why- but catch is and e is {e.Message}");
- MessageBox.Show("There was an error with SteamApi Init. You might have issues with config. Using first folder instead in MyGames");
- bDefaultValue = true;
- }
- WhatIsWrongWithThisLauncher.Tellme("steam init pre stemplayer");
- string steamplayer = null;
- if (!bDefaultValue)
- {
- WhatIsWrongWithThisLauncher.Tellme("steam init not default value");
- CSteamID player = SteamApps.GetAppOwner();
- steamplayer = player.m_SteamID.ToString();
- WhatIsWrongWithThisLauncher.Tellme($"steam init app owner is {steamplayer}");
- string lang = SteamUtils.GetSteamUILanguage();
- WhatIsWrongWithThisLauncher.Tellme($"steam init app lang is {lang}");
- }
- string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal is {path}");
-
- if (!bDefaultValue)
- {
- configPath = path = Path.Combine(path, "My Games", "FINAL FANTASY VIII Remastered", "Steam", steamplayer, "config.txt");
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path not default is {configPath}");
- }
- else
- {
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES default");
- configPath = path = Path.Combine(path, "My Games", "FINAL FANTASY VIII Remastered", "Steam");
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES default is {configPath}");
- if(!Directory.Exists(configPath))
- {
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES default -not found path: {configPath}");
- try
- {
-
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES default -not found path TRY CREATE: {configPath}");
- Directory.CreateDirectory(configPath);
- }
- catch(Exception e)
- {
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES default -not found path TRY CREATE FAIL e is: {e.Message}");
- return;
- }
- }
- var paths = Directory.EnumerateDirectories(path).ToList();
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES enumereate: {paths.Count}");
- if (paths.Count != 0)
- {
- configPath = path = paths[0];
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES enumereate zero: {configPath}");
- }
- else
- {
- configPath = path = Path.Combine(path, "0");
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES enumereate get zero {configPath}");
- if (Directory.Exists(configPath))
- {
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES enumereate get zero but it doesn't exist");
- return;
- }
- }
-
- configPath = path = Path.Combine(path, "config.txt");
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal config path YES finalyl {configPath}");
- }
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal try to create dir if not exist {path}");
- if (!Directory.Exists(Path.GetDirectoryName(path)))
- Directory.CreateDirectory(Path.GetDirectoryName(path));
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init personal create new file {path}");
- if (!File.Exists(path))
- {
- File.WriteAllLines(path, new string[]
- {
- "width\t\t\t1280",
- "height\t\t\t768",
- "language\t\tEN",
- "mastervol\t\t100",
- "bgmvol\t\t\t100",
- "screenmode\t\t2",
- "display\t\t\t1",
- "cameraspeed\t\t4",
- "brightness\t\t50",
- "antialiaslevel\t1",
- "firstboot\t1"
- }, Encoding.GetEncoding("Shift_JIS"));
- }
- WhatIsWrongWithThisLauncher.Tellme($"opt steam init it's done!");
- }
-
- public VanillaOptions()
- {
- InitializeComponent();
- }
-
- //pinvoke.net
-
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
- public struct DISPLAY_DEVICE
- {
- [MarshalAs(UnmanagedType.U4)]
- public int cb;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
- public string DeviceName;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string DeviceString;
- [MarshalAs(UnmanagedType.U4)]
- public DisplayDeviceStateFlags StateFlags;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string DeviceID;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string DeviceKey;
- }
-
- private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
- {
- res selectedRes = resolutions[(sender as ComboBox).SelectedIndex];
- textBox2.Text = selectedRes.width.ToString();
- textBox3.Text = selectedRes.height.ToString();
- }
-
- [Flags()]
- public enum DisplayDeviceStateFlags : int
- {
- /// The device is part of the desktop.
- AttachedToDesktop = 0x1,
- MultiDriver = 0x2,
- /// The device is part of the desktop.
- PrimaryDevice = 0x4,
- /// Represents a pseudo device used to mirror application drawing for remoting or other purposes.
- MirroringDriver = 0x8,
- /// The device is VGA compatible.
- VGACompatible = 0x10,
- /// The device is removable; it cannot be the primary display.
- Removable = 0x20,
- /// The device has more display modes than its output devices support.
- ModesPruned = 0x8000000,
- Remote = 0x4000000,
- Disconnect = 0x2000000
- }
-
- [DllImport("user32.dll")]
- static extern bool EnumDisplayDevices(string lpDevice, uint iDevNum, ref DISPLAY_DEVICE lpDisplayDevice, uint dwFlags);
-
- struct res
- {
- public int width;
- public int height;
- public int bpp;
- public int freq;
-
-
- }
-
- List resolutions;
-
- //stack
- [DllImport("user32.dll")]
- public static extern bool EnumDisplaySettings(
- string deviceName, int modeNum, ref DEVMODE devMode);
- const int ENUM_CURRENT_SETTINGS = -1;
-
- const int ENUM_REGISTRY_SETTINGS = -2;
-
- [StructLayout(LayoutKind.Sequential)]
- public struct DEVMODE
- {
-
- private const int CCHDEVICENAME = 0x20;
- private const int CCHFORMNAME = 0x20;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x20)]
- public string dmDeviceName;
- public short dmSpecVersion;
- public short dmDriverVersion;
- public short dmSize;
- public short dmDriverExtra;
- public int dmFields;
- public int dmPositionX;
- public int dmPositionY;
- public ScreenOrientation dmDisplayOrientation;
- public int dmDisplayFixedOutput;
- public short dmColor;
- public short dmDuplex;
- public short dmYResolution;
- public short dmTTOption;
- public short dmCollate;
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x20)]
- public string dmFormName;
- public short dmLogPixels;
- public int dmBitsPerPel;
- public int dmPelsWidth;
- public int dmPelsHeight;
- public int dmDisplayFlags;
- public int dmDisplayFrequency;
- public int dmICMMethod;
- public int dmICMIntent;
- public int dmMediaType;
- public int dmDitherType;
- public int dmReserved1;
- public int dmReserved2;
- public int dmPanningWidth;
- public int dmPanningHeight;
-
- }
-
- int getLangIdx(string lang)
- {
- switch (lang)
- {
- case "JP":
- return 0;
- case "EN":
- return 1;
- case "FR":
- return 2;
- case "IT":
- return 3;
- case "DE":
- return 4;
- case "ES":
- return 5;
-
- }
- return 1;
- }
- }
-}
diff --git a/viiidem_customlauncher/VanillaOptions.resx b/viiidem_customlauncher/VanillaOptions.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/viiidem_customlauncher/VanillaOptions.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/viiidem_customlauncher/WhatIsWrongWithThisLauncher.cs b/viiidem_customlauncher/WhatIsWrongWithThisLauncher.cs
deleted file mode 100644
index 1efff6c..0000000
--- a/viiidem_customlauncher/WhatIsWrongWithThisLauncher.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace viiidem_customlauncher
-{
- class WhatIsWrongWithThisLauncher
- {
- public static void Tellme(string why)
- {
- using (FileStream fs = new FileStream("launcher_unfucker.txt", FileMode.Append, FileAccess.Write))
- {
- using (StreamWriter sw = new StreamWriter(fs))
- {
- sw.WriteLine($"{DateTime.UtcNow - Process.GetCurrentProcess().StartTime.ToUniversalTime()}|{why}");
- }
- }
- }
- }
-}
diff --git a/viiidem_customlauncher/viiidem_customlauncher.csproj b/viiidem_customlauncher/viiidem_customlauncher.csproj
index 4dd65a4..b70414f 100644
--- a/viiidem_customlauncher/viiidem_customlauncher.csproj
+++ b/viiidem_customlauncher/viiidem_customlauncher.csproj
@@ -7,7 +7,7 @@
{E8FE9475-BE92-4FCD-8DD2-782789A07CAC}
WinExe
viiidem_customlauncher
- ffviii_launcher
+ ffviii_demaster_manager
v4.5
512
true
@@ -32,10 +32,6 @@
4
-
- False
- .\Steamworks.NET.dll
-
@@ -63,13 +59,6 @@
-
- Form
-
-
- VanillaOptions.cs
-
-
Form
@@ -93,9 +82,6 @@
Resources.resx
True
-
- VanillaOptions.cs
-
zzzWatcher.cs
@@ -118,12 +104,6 @@
-
-
-
-
-
-