Skip to content

Commit

Permalink
Read/write permission info for game data path
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Jan 8, 2016
1 parent 317ddde commit 9e341e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BodySlideApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ bool BodySlideApp::OnInit() {

InitArchives();

if (!Config["GameDataPath"].empty()) {
bool dirWritable = wxFileName::IsDirWritable(Config["GameDataPath"]);
bool dirReadable = wxFileName::IsDirReadable(Config["GameDataPath"]);
if (!dirWritable || !dirReadable)
wxMessageBox("No read/write permission for game data path!\n\nPlease launch the program with admin elevation and make sure the game data path in the settings is correct.", "Warning", wxICON_WARNING);
}

if (straightOutfitStudio)
LaunchOutfitStudio();

Expand Down

0 comments on commit 9e341e1

Please sign in to comment.