提交 b2a85a28 编写于 作者: J jp9000

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.
上级 1946ee64
......@@ -736,7 +736,7 @@ inline void TextSource::Tick(float seconds)
time_t t = get_modified_timestamp(file.c_str());
update_time_elapsed = 0.0f;
if (file_timestamp < t) {
if (file_timestamp != t) {
LoadFileText();
RenderText();
file_timestamp = t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册