Fix a Listener Bug (#45)

* try a fix

* add debug prints

* more prints

* try again

* more stderr

* print again

* am idiot

* cleanup

* cleanup
This commit is contained in:
water111
2020-09-14 22:14:07 -04:00
committed by GitHub
parent 8972d37167
commit bb854dd81e
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -16,10 +16,8 @@ std::string file_util::get_project_path() {
#ifdef _WIN32
char buffer[FILENAME_MAX];
GetModuleFileNameA(NULL, buffer, FILENAME_MAX);
printf("using path %s\n", buffer);
std::string::size_type pos =
std::string(buffer).rfind("jak-project"); // Strip file path down to \jak-project\ directory
printf("rfind returned %lld\n", pos);
return std::string(buffer).substr(
0, pos + 11); // + 12 to include "\jak-project" in the returned filepath
#else