Daniele Bartolini 9 anni fa
parent
commit
217853ac47
3 ha cambiato i file con 4 aggiunte e 13 eliminazioni
  1. 1 1
      src/device/device.cpp
  2. 0 9
      src/device/device.h
  3. 3 3
      src/lua/lua_api.cpp

+ 1 - 1
src/device/device.cpp

@@ -320,7 +320,7 @@ void Device::run()
 	_last_log = _bundle_filesystem->open(CROWN_LAST_LOG, FileOpenMode::WRITE);
 #endif // CROWN_PLATFORM_ANDROID
 
-	logi(DEVICE, "Initializing Crown Engine %s %s %s", version(), platform(), architecture());
+	logi(DEVICE, "Initializing Crown Engine %s %s %s", CROWN_VERSION, CROWN_PLATFORM_NAME, CROWN_ARCH_NAME);
 
 	profiler_globals::init();
 

+ 0 - 9
src/device/device.h

@@ -79,15 +79,6 @@ public:
 	/// Returns command line parameters.
 	const char** argv() const { return (const char**)_device_options._argv; }
 
-	/// Returns a string identifying what platform the engine is running on.
-	const char* platform() const { return CROWN_PLATFORM_NAME; }
-
-	/// Returns a string identifying what architecture the engine is running on.
-	const char* architecture() const { return CROWN_ARCH_NAME; }
-
-	/// Returns a string identifying the engine version.
-	const char* version() const { return CROWN_VERSION; }
-
 	/// Return the number of frames rendered.
 	u64 frame_count() const;
 

+ 3 - 3
src/lua/lua_api.cpp

@@ -2473,21 +2473,21 @@ static int device_argv(lua_State* L)
 static int device_platform(lua_State* L)
 {
 	LuaStack stack(L);
-	stack.push_string(device()->platform());
+	stack.push_string(CROWN_PLATFORM_NAME);
 	return 1;
 }
 
 static int device_architecture(lua_State* L)
 {
 	LuaStack stack(L);
-	stack.push_string(device()->architecture());
+	stack.push_string(CROWN_ARCH_NAME);
 	return 1;
 }
 
 static int device_version(lua_State* L)
 {
 	LuaStack stack(L);
-	stack.push_string(device()->version());
+	stack.push_string(CROWN_VERSION);
 	return 1;
 }