mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
avoid string copy in redirect_path
This commit is contained in:
1 file changed
+2
-2
@@ -265,8 +265,8 @@ JNIEXPORT int JNICALL Java_com_geode_launcher_LauncherFix_performExceptionsRenam
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string redirect_path(const char* pathname) {
|
std::string redirect_path(const char* pathname) {
|
||||||
auto data_path = DataPaths::get_instance().data_path;
|
auto& data_path = DataPaths::get_instance().data_path;
|
||||||
auto original_data_path = DataPaths::get_instance().original_data_path;
|
auto& original_data_path = DataPaths::get_instance().original_data_path;
|
||||||
|
|
||||||
if (!data_path.empty() && !original_data_path.empty()) {
|
if (!data_path.empty() && !original_data_path.empty()) {
|
||||||
// call this a c string optimization
|
// call this a c string optimization
|
||||||
|
|||||||
Reference in new issue
Block a user