mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-07 08:09:13 +08:00
@@ -31,12 +31,12 @@ namespace cc {
|
||||
CommonSystem::CommonSystem() = default;
|
||||
CommonSystem::~CommonSystem() = default;
|
||||
|
||||
std::string CommonSystem::getDeviceModel() const {
|
||||
ccstd::string CommonSystem::getDeviceModel() const {
|
||||
return getDeviceModelJNI();
|
||||
}
|
||||
|
||||
CommonSystem::LanguageType CommonSystem::getCurrentLanguage() const {
|
||||
std::string languageName = getCurrentLanguageJNI();
|
||||
ccstd::string languageName = getCurrentLanguageJNI();
|
||||
const char * pLanguageName = languageName.c_str();
|
||||
LanguageType ret = LanguageType::ENGLISH;
|
||||
|
||||
@@ -82,15 +82,15 @@ CommonSystem::LanguageType CommonSystem::getCurrentLanguage() const {
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string CommonSystem::getCurrentLanguageCode() const {
|
||||
ccstd::string CommonSystem::getCurrentLanguageCode() const {
|
||||
return getCurrentLanguageCodeJNI();
|
||||
}
|
||||
|
||||
std::string CommonSystem::getSystemVersion() const {
|
||||
ccstd::string CommonSystem::getSystemVersion() const {
|
||||
return getSystemVersionJNI();
|
||||
}
|
||||
|
||||
bool CommonSystem::openURL(const std::string &url) {
|
||||
bool CommonSystem::openURL(const ccstd::string &url) {
|
||||
return openURLJNI(url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user