disable brush start curve for other than iOS, frames capture for Windows, fix frame dt
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user