diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-07 22:18:04 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-07 22:24:39 +0300 |
commit | df556366579cbe9c28bb71a876c64e7b90f3ebf7 (patch) | |
tree | ebaa6aca25f8b184906a1dc37f853cad2f385b19 /Apps/NesGame.cs | |
parent | 78d43197c2c7dfc778d2fd044ab9112e40d33a6a (diff) |
ClickOnce ready. Finally installer and auto update.
Diffstat (limited to 'Apps/NesGame.cs')
-rw-r--r-- | Apps/NesGame.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Apps/NesGame.cs b/Apps/NesGame.cs index a76b943a..35a814d5 100644 --- a/Apps/NesGame.cs +++ b/Apps/NesGame.cs @@ -95,7 +95,7 @@ namespace com.clusterrr.hakchi_gui var code = GenerateCode(crc32, Prefix);
var gamePath = Path.Combine(GamesDirectory, code);
var nesPath = Path.Combine(gamePath, code + ".nes");
- var patchesDirectory = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "patches");
+ var patchesDirectory = Path.Combine(Program.BaseDirectoryExternal, "patches");
Directory.CreateDirectory(patchesDirectory);
Directory.CreateDirectory(gamePath);
var patches = Directory.GetFiles(patchesDirectory, string.Format("{0:X8}*.ips", crc32), SearchOption.AllDirectories);
@@ -215,7 +215,7 @@ namespace com.clusterrr.hakchi_gui {
try
{
- var xmlDataBasePath = Path.Combine(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "data"), "nescarts.xml");
+ var xmlDataBasePath = Path.Combine(Path.Combine(Program.BaseDirectoryInternal, "data"), "nescarts.xml");
Debug.WriteLine("Loading " + xmlDataBasePath);
if (File.Exists(xmlDataBasePath))
|