Explorar el Código

Update resource compilers

Daniele Bartolini hace 9 años
padre
commit
13e83be660

+ 1 - 1
src/resource/lua_resource.cpp

@@ -38,7 +38,7 @@ namespace lua_resource
 		DynamicString luasrc(ta);
 		DynamicString luabin(ta);
 		opts.get_absolute_path(path, luasrc);
-		opts.get_absolute_path("luabin.tmp", luabin);
+		opts.get_temporary_path("lua.bin", luabin);
 
 		StringStream args(ta);
 		args << " " << LUAJIT_FLAGS;

+ 5 - 5
src/resource/shader_resource.cpp

@@ -650,11 +650,11 @@ namespace shader_resource
 			, _vs_compiled_path(default_allocator())
 			, _fs_compiled_path(default_allocator())
 		{
-			_opts.get_absolute_path("vs_source.sc.tmp", _vs_source_path);
-			_opts.get_absolute_path("fs_source.sc.tmp", _fs_source_path);
-			_opts.get_absolute_path("varying.sc.tmp", _varying_path);
-			_opts.get_absolute_path("vs_compiled.bin.tmp", _vs_compiled_path);
-			_opts.get_absolute_path("fs_compiled.bin.tmp", _fs_compiled_path);
+			_opts.get_temporary_path("vs_source.sc", _vs_source_path);
+			_opts.get_temporary_path("fs_source.sc", _fs_source_path);
+			_opts.get_temporary_path("varying.sc", _varying_path);
+			_opts.get_temporary_path("vs_compiled.bin", _vs_compiled_path);
+			_opts.get_temporary_path("fs_compiled.bin", _fs_compiled_path);
 		}
 
 		void parse(const char* path)

+ 1 - 1
src/resource/texture_resource.cpp

@@ -54,7 +54,7 @@ namespace texture_resource
 		DynamicString texsrc(ta);
 		DynamicString texout(ta);
 		opts.get_absolute_path(name.c_str(), texsrc);
-		opts.get_absolute_path("texture.ktx", texout);
+		opts.get_temporary_path("texture.ktx", texout);
 
 		StringStream args(ta);
 		args << " -f " << texsrc.c_str();