Daniele Bartolini пре 3 година
родитељ
комит
1e0d66a640
2 измењених фајлова са 12 додато и 8 уклоњено
  1. 10 0
      src/device/device.cpp
  2. 2 8
      src/device/device.h

+ 10 - 0
src/device/device.cpp

@@ -548,6 +548,16 @@ void Device::quit()
 		_console_server->close();
 		_console_server->close();
 }
 }
 
 
+int Device::argc() const
+{
+	return _options._argc;
+}
+
+const char **Device::argv() const
+{
+	return (const char **)_options._argv;
+}
+
 void Device::pause()
 void Device::pause()
 {
 {
 	_paused = true;
 	_paused = true;

+ 2 - 8
src/device/device.h

@@ -78,16 +78,10 @@ struct Device
 	void run();
 	void run();
 
 
 	/// Returns the number of command line parameters.
 	/// Returns the number of command line parameters.
-	int argc() const
-	{
-		return _options._argc;
-	}
+	int argc() const;
 
 
 	/// Returns command line parameters.
 	/// Returns command line parameters.
-	const char **argv() const
-	{
-		return (const char **)_options._argv;
-	}
+	const char **argv() const;
 
 
 	/// Quits the application.
 	/// Quits the application.
 	void quit();
 	void quit();