View Single Post
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