Use EXE path instead of working directory for Nescarts.7z, config.ini, and gamedb.txt
This commit is contained in:
parent
1d0a504704
commit
157d8b7152
|
@ -6,7 +6,7 @@
|
||||||
<ProductVersion>9.0.30729</ProductVersion>
|
<ProductVersion>9.0.30729</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{DD448B37-BA3F-4544-9754-5406E8094723}</ProjectGuid>
|
<ProjectGuid>{DD448B37-BA3F-4544-9754-5406E8094723}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>BizHawk.MultiClient</RootNamespace>
|
<RootNamespace>BizHawk.MultiClient</RootNamespace>
|
||||||
<AssemblyName>BizHawk.MultiClient</AssemblyName>
|
<AssemblyName>BizHawk.MultiClient</AssemblyName>
|
||||||
|
@ -14,6 +14,8 @@
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<StartupObject>
|
<StartupObject>
|
||||||
</StartupObject>
|
</StartupObject>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<ApplicationIcon>corphawk.ico</ApplicationIcon>
|
||||||
<PublishUrl>publish\</PublishUrl>
|
<PublishUrl>publish\</PublishUrl>
|
||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
<InstallFrom>Disk</InstallFrom>
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
@ -26,10 +28,8 @@
|
||||||
<MapFileExtensions>true</MapFileExtensions>
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
<ApplicationRevision>0</ApplicationRevision>
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
<ApplicationIcon>corphawk.ico</ApplicationIcon>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
|
|
@ -66,12 +66,12 @@ namespace BizHawk.MultiClient
|
||||||
//in order to allow late construction of this database, we hook up a delegate here to dearchive the data and provide it on demand
|
//in order to allow late construction of this database, we hook up a delegate here to dearchive the data and provide it on demand
|
||||||
//we could background thread this later instead if we wanted to be real clever
|
//we could background thread this later instead if we wanted to be real clever
|
||||||
NES.BootGodDB.GetDatabaseBytes = () => {
|
NES.BootGodDB.GetDatabaseBytes = () => {
|
||||||
using (HawkFile NesCartFile = new HawkFile("NesCarts.7z").BindFirst())
|
using (HawkFile NesCartFile = new HawkFile(PathManager.GetExePathAbsolute() + "\\NesCarts.7z").BindFirst())
|
||||||
return Util.ReadAllBytes(NesCartFile.GetStream());
|
return Util.ReadAllBytes(NesCartFile.GetStream());
|
||||||
};
|
};
|
||||||
Global.MainForm = this;
|
Global.MainForm = this;
|
||||||
|
|
||||||
Database.LoadDatabase("gamedb.txt");
|
Database.LoadDatabase(PathManager.GetExePathAbsolute() + "\\gamedb.txt");
|
||||||
|
|
||||||
SyncPresentationMode();
|
SyncPresentationMode();
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace BizHawk.MultiClient
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
|
||||||
Global.Config = ConfigService.Load<Config>("config.ini");
|
Global.Config = ConfigService.Load<Config>(PathManager.GetExePathAbsolute() + "\\config.ini");
|
||||||
|
|
||||||
try { Global.DSound = new DirectSound(); }
|
try { Global.DSound = new DirectSound(); }
|
||||||
catch {
|
catch {
|
||||||
|
|
Loading…
Reference in New Issue