mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user