Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 3, 2018, 16:25   #1
Gordon
Scout
 
Join Date: Jan 2010
Posts: 31
Gordon is on a distinguished road
Question concerning paths when compiling Angband 4.05 with Visual Studio

When building Angband 4.05 with Visual Studio there is a path problem in that Angband uses lib/scores and lib/save instead of lib/user/scores and lib/user/save. The solution to this problem is very simple. Just replace:
Code:
#ifdef USE_PRIVATE_PATHS
 userpath = ANGBAND_DIR_USER;
#else /* !USE_PRIVATE_PATHS */
 userpath = (char *)datapath;
#endif /* USE_PRIVATE_PATHS */

 /* Build the path to the score and save directories */
 BUILD_DIRECTORY_PATH(ANGBAND_DIR_SCORES, userpath, "scores");
 BUILD_DIRECTORY_PATH(ANGBAND_DIR_SAVE, userpath, "save");
with:
Code:
 /* Build the path to the score and save directories */
 BUILD_DIRECTORY_PATH(ANGBAND_DIR_SCORES, ANGBAND_DIR_USER, "scores");
 BUILD_DIRECTORY_PATH(ANGBAND_DIR_SAVE, ANGBAND_DIR_USER, "save");
in init.c. However, before implementing this, I'd like to know what was intended here.
Gordon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution for Angband crash on startup when compiled with Visual Studio Gordon Development 1 April 6, 2018 20:54
Need help with compliing Angband with Visual Studio 2016 Nekoninja Development 2 August 22, 2016 00:34
Visual Studio challenges jeritind Development 4 January 1, 2014 20:26
Visual Studio 2010 Express, help for the newbie? Chud Development 12 June 14, 2013 23:40
Visual Studio 2008 - building 32 & 64 bit now! LanceDiamond Development 5 April 25, 2009 14:59


All times are GMT +1. The time now is 16:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.