diff render_sdl.c @ 747:85c98a222fea

Merge
author Michael Pavone <pavone@retrodev.com>
date Thu, 28 May 2015 23:05:32 -0700
parents 9d4d40f833d0
children 1b2f8280ba81
line wrap: on
line diff
--- a/render_sdl.c	Thu May 28 00:11:15 2015 -0700
+++ b/render_sdl.c	Thu May 28 23:05:32 2015 -0700
@@ -5,6 +5,7 @@
 */
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <math.h>
 #include "render.h"
 #include "blastem.h"
@@ -106,7 +107,7 @@
 
 GLuint load_shader(char * fname, GLenum shader_type)
 {
-	char * parts[] = {getenv("HOME"), "/.config/blastem/shaders/", fname};
+	char * parts[] = {get_home_dir(), "/.config/blastem/shaders/", fname};
 	char * shader_path = alloc_concat_m(3, parts);
 	FILE * f = fopen(shader_path, "r");
 	free(shader_path);