prepare UI for release, disable unused features, rename file format to .ppi
This commit is contained in:
@@ -1483,7 +1483,7 @@ void ui::Canvas::export_cubes(std::string data_path)
|
||||
static char name[128];
|
||||
sprintf(name, "%s.zip", data_path.c_str());
|
||||
auto zip_path = [NSString stringWithUTF8String : name];
|
||||
[SSZipArchive createZipFileAtPath:zip_path withFilesAtPaths:files];
|
||||
//[SSZipArchive createZipFileAtPath:zip_path withFilesAtPaths:files];
|
||||
for (NSString* f : files)
|
||||
[[NSFileManager defaultManager] removeItemAtPath:f error:nil];
|
||||
#endif
|
||||
@@ -1494,7 +1494,7 @@ void ui::Canvas::project_save(std::function<void()> on_complete)
|
||||
if (App::I.check_license())
|
||||
{
|
||||
std::thread t([=] {
|
||||
project_save_thread(App::I.data_path + "/" + App::I.doc_name + ".pano");
|
||||
project_save_thread(App::I.data_path + "/" + App::I.doc_name + ".ppi");
|
||||
if (on_complete)
|
||||
on_complete();
|
||||
});
|
||||
@@ -1524,7 +1524,7 @@ void ui::Canvas::project_save_thread(std::string file_path)
|
||||
return;
|
||||
|
||||
// static char name[128];
|
||||
// sprintf(name, "%s/latlong.pano", data_path.c_str());
|
||||
// sprintf(name, "%s/latlong.ppi", data_path.c_str());
|
||||
FILE* fp = fopen(file_path.c_str(), "wb");
|
||||
if (!fp)
|
||||
{
|
||||
@@ -1836,7 +1836,7 @@ ui::Image ui::Canvas::thumbnail_generate(int w, int h)
|
||||
ui::Image ui::Canvas::thumbnail_read(std::string data_path)
|
||||
{
|
||||
// static char name[128];
|
||||
// sprintf(name, "%s/latlong.pano", data_path.c_str());
|
||||
// sprintf(name, "%s/latlong.ppi", data_path.c_str());
|
||||
FILE* fp = fopen(data_path.c_str(), "rb");
|
||||
if (!fp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user