Skip to content

Commit 371393d

Browse files
committed
[remote] update path for new qml-remote
1 parent daa4d2b commit 371393d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/plugins/score-plugin-remotecontrol/RemoteControl/Http_server.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
// Official repository: https://github.com/boostorg/beast
88
//
99

10+
#include <Library/LibrarySettings.hpp>
1011
#include <RemoteControl/Http_server.hpp>
1112

13+
#include <cstdlib>
14+
#include <iostream>
15+
#include <fstream>
16+
17+
1218
//------------------------------------------------------------------------------
1319

1420
namespace RemoteControl
@@ -174,7 +180,7 @@ Http_server::handle_request(
174180
// Cache the size since we need it after the move
175181
auto const size = body.size();
176182

177-
if ( req.target().find("remote.html") != std::string::npos )
183+
if ( req.target().find("ossia_remote.html") != std::string::npos )
178184
{
179185
// Load file
180186
QFile f(path.c_str());
@@ -307,13 +313,9 @@ Http_server::open_server()
307313
{
308314
auto const address2 = net::ip::make_address("0.0.0.0");
309315
auto const port = static_cast<unsigned short>(std::atoi("8080"));
310-
<<<<<<< HEAD:src/plugins/score-plugin-remotecontrol/RemoteControl/Http_server.cpp
311-
auto const m_docRoot = std::make_shared<std::string>("./src/plugins/score-plugin-remotecontrol/CMakeFiles/score_plugin_remotecontrol.dir/RemoteControl/build-wasm/");
312-
=======
313316
std::string packagesPath = score::AppContext().settings<Library::Settings::Model>().getPackagesPath().toStdString();
314-
m_buildWasmPath = packagesPath + "/build-wasm/";
317+
m_buildWasmPath = packagesPath + "/wasm-remote/";
315318
auto const m_docRoot = std::make_shared<std::string>(m_buildWasmPath);
316-
>>>>>>> c8b914cd2 (changes from the review):src/plugins/score-plugin-remotecontrol/RemoteControl/HttpServer.cpp
317319

318320
bool is_ip_address_set = false;
319321

src/plugins/score-plugin-remotecontrol/RemoteControl/Http_server.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
#include <boost/beast/version.hpp>
1717
#include <boost/asio/ip/tcp.hpp>
1818
#include <boost/config.hpp>
19-
#include <cstdlib>
20-
#include <iostream>
19+
2120
#include <memory>
2221
#include <string>
2322
#include <thread>
24-
#include <fstream>
2523

2624
#ifdef _WIN32
2725
#define SHUT_RDWR 2

0 commit comments

Comments
 (0)