浏览代码

obs-text: Reload whenever file timestamp has changed

Rather than reload when the timestamp is greater than the previous
timestamp, reload whenever the timestamp has changed.
jp9000 9 年之前
父节点
当前提交
b2a85a2820
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/obs-text/gdiplus/obs-text.cpp

+ 1 - 1
plugins/obs-text/gdiplus/obs-text.cpp

@@ -736,7 +736,7 @@ inline void TextSource::Tick(float seconds)
 		time_t t = get_modified_timestamp(file.c_str());
 		time_t t = get_modified_timestamp(file.c_str());
 		update_time_elapsed = 0.0f;
 		update_time_elapsed = 0.0f;
 
 
-		if (file_timestamp < t) {
+		if (file_timestamp != t) {
 			LoadFileText();
 			LoadFileText();
 			RenderText();
 			RenderText();
 			file_timestamp = t;
 			file_timestamp = t;