Skip to content
Permalink
Browse files

Attempt to finally fix the 'error setting current directory' and the …

…game files being dumped in your home folder on OSX
  • Loading branch information...
UnknownShadow200 committed May 9, 2019
1 parent 6497c1d commit 2ed9197928141029a421d426d8e5394c0c0072a9
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/Platform.c
  2. +2 −2 src/Window.c
@@ -1618,10 +1618,11 @@ ReturnCode Process_StartOpen(const String* args) {
return Process_Start(&path, args);
}
ReturnCode Process_GetExePath(String* path) {
char str[600];
char str[600] = { 0 };
int len = 600;

if (_NSGetExecutablePath(str, &len)) return ERR_INVALID_ARGUMENT;

len = String_CalcLen(str, 600);
Convert_DecodeUtf8(path, str, len);
return 0;
}
@@ -2776,9 +2776,9 @@ void Window_Init(void) {
void Window_Create(int x, int y, int width, int height, struct GraphicsMode* mode) {
Window_Exists = true;
Window_Focused = true;

Window_HookEvents();
Window_SetSize(width, height);
/* let the webpage decide on bounds */
Window_RefreshBounds();
}

void Window_SetTitle(const String* title) {

0 comments on commit 2ed9197

Please sign in to comment.
You can’t perform that action at this time.