Skip to content

Commit 5147f7c

Browse files
Fixes import from SLOBS exported scene collections, 0.0.7 release
1 parent d2349c8 commit 5147f7c

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(setup_obs_lib_dependency target)
3434
endif()
3535
endfunction()
3636

37-
project(elgato-marketplace VERSION 0.0.6)
37+
project(elgato-marketplace VERSION 0.0.7)
3838

3939
if(${CMAKE_PROJECT_NAME} STREQUAL "obs-studio")
4040
set(OBS_FRONTEND_API_NAME "frontend-api")

buildspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"name": "elgato-marketplace",
4242
"displayName": "Elgato Marketplace Plugin",
43-
"version": "0.0.6",
43+
"version": "0.0.7",
4444
"author": "Elgato",
4545
"website": "https://elgato.com",
4646
"email": "support@elgato.com",

src/elgato-cloud-window.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,12 +795,12 @@ void CloseElgatoCloudWindow()
795795

796796
extern void InitElgatoCloud(obs_module_t *module)
797797
{
798-
obs_log(LOG_INFO, "version: %s", "0.0.6");
798+
obs_log(LOG_INFO, "version: %s", "0.0.7");
799799

800800
elgatoCloud = new ElgatoCloud(module);
801-
QAction *action = (QAction *)obs_frontend_add_tools_menu_qaction(
802-
"Elgato Marketplace");
803-
action->connect(action, &QAction::triggered, OpenElgatoCloudWindow);
801+
//QAction *action = (QAction *)obs_frontend_add_tools_menu_qaction(
802+
// "Elgato Marketplace");
803+
//action->connect(action, &QAction::triggered, OpenElgatoCloudWindow);
804804
}
805805

806806
extern void ShutDown()

src/plugin-module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ bool obs_module_load(void)
7474
auto config = elgatocloud::GetElgatoCloudConfig();
7575
bool makerTools = obs_data_get_bool(config, "MakerTools");
7676
obs_data_release(config);
77-
if (makerTools) {
77+
if (makerTools || true) {
7878
obs_frontend_add_tools_menu_item("Export Marketplace Scene",
7979
export_collection, NULL);
8080
obs_frontend_add_tools_menu_item("Import Marketplace Scene",

src/plugin-support.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
2121
extern void blogva(int log_level, const char *format, va_list args);
2222

2323
const char *PLUGIN_NAME = "elgato-marketplace";
24-
const char *PLUGIN_VERSION = "0.0.6";
24+
const char *PLUGIN_VERSION = "0.0.7";
2525

2626
void obs_log(int log_level, const char *format, ...)
2727
{

src/scene-bundle.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,15 @@ void SceneBundle::_ProcessJsonObj(nlohmann::json &obj)
392392
void SceneBundle::_CreateFileMap(nlohmann::json &item)
393393
{
394394
std::string value = item.template get<std::string>();
395+
396+
size_t pos = 0;
397+
std::string from = "\\";
398+
std::string to = "/";
399+
while ((pos = value.find(from, pos)) != std::string::npos) {
400+
value.replace(pos, from.length(), to);
401+
pos += to.length();
402+
}
403+
395404
struct stat st;
396405
if (os_stat(value.c_str(), &st) == 0 && st.st_mode & S_IEXEC) {
397406
obs_log(LOG_INFO, "_CreativeFileMap: IS EXEC");

0 commit comments

Comments
 (0)