disable brush start curve for other than iOS, frames capture for Windows, fix frame dt

This commit is contained in:
2018-05-09 12:06:34 +02:00
parent af0e588a94
commit 01e3544f95
3 changed files with 11 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ void App::initLog()
CHAR path[MAX_PATH];
GetCurrentDirectoryA(sizeof(path), path);
data_path = path;
rec_path = data_path + "\\frames";
#endif
LogRemote::I.start();
@@ -440,12 +441,18 @@ void App::rec_start()
{
if (!rec_running)
{
#if defined(__IOS__) || defined(__OSX__)
NSString* path = [NSString stringWithUTF8String:rec_path.c_str()];
NSArray *dirFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
NSArray *jpgFiles = [dirFiles filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"self ENDSWITH '.jpg'"]];
rec_count = (int)[jpgFiles count];
update_rec_frames();
rec_thread = std::thread(&App::rec_loop, this);
#else
rec_count = Asset::list_files(rec_path, false, ".*\\.jpg").size();
update_rec_frames();
rec_thread = std::thread(&App::rec_loop, this);
#endif
}
}