aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-06-15 00:14:05 +0000
committerGitHub <[email protected]>2017-06-15 00:14:05 +0000
commit792f4072159f24f6c3e1100d018f4aaf512d659b (patch)
tree1ee7b9556e480eecd07f0954bb23e6165e6eaf77 /TimeHACK.Engine
parenta430ef0e25ec401c0d42e1e3944eb35c09a0c519 (diff)
parent92f1b7b926777c4ddca622b1983994b39332f68e (diff)
downloadhistacom2-792f4072159f24f6c3e1100d018f4aaf512d659b.tar.gz
histacom2-792f4072159f24f6c3e1100d018f4aaf512d659b.tar.bz2
histacom2-792f4072159f24f6c3e1100d018f4aaf512d659b.zip
Merge pull request #93 from STTADev/master
font fix
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/BSODCreator.cs2
-rw-r--r--TimeHACK.Engine/WindowManager.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/TimeHACK.Engine/BSODCreator.cs b/TimeHACK.Engine/BSODCreator.cs
index 271087c..818fad5 100644
--- a/TimeHACK.Engine/BSODCreator.cs
+++ b/TimeHACK.Engine/BSODCreator.cs
@@ -21,7 +21,7 @@ namespace TimeHACK.Engine
public Win9XBSOD throw9XBSOD(bool except, BSODCauses type)
{
- pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\windows_command_prompt.ttf");
+ pfc.AddFontFile(SaveSystem.GameDirectory + "\\Data\\windows_command_prompt.ttf");
Win9XBSOD bsod = new Win9XBSOD();
foreach (Control ctrl in bsod.Controls) {
ctrl.Font = new System.Drawing.Font(pfc.Families[0], 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((0)));
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 2d5ef8a..76c7e3d 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -19,7 +19,7 @@ namespace TimeHACK.Engine
app.Width = content.Width + 8;
app.Height = content.Height + 26;
// Initialize Font
- pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\LeviWindows.ttf");
+ pfc.AddFontFile(SaveSystem.GameDirectory + "\\LeviWindows.ttf");
Font fnt = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
app.fnt = fnt;
app.Title.Font = new Font(pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, ((0)));