Question concerning paths when compiling Angband 4.05 with Visual Studio

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gordon
    Scout
    • Jan 2010
    • 31

    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.
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎