|
@@ -35,7 +35,7 @@ namespace crown
|
|
|
/// @ingroup Device
|
|
/// @ingroup Device
|
|
|
struct Device
|
|
struct Device
|
|
|
{
|
|
{
|
|
|
- Device(DeviceOptions& opts);
|
|
|
|
|
|
|
+ Device(const DeviceOptions& opts);
|
|
|
|
|
|
|
|
void init();
|
|
void init();
|
|
|
|
|
|
|
@@ -136,7 +136,7 @@ private:
|
|
|
float _last_delta_time;
|
|
float _last_delta_time;
|
|
|
double _time_since_start;
|
|
double _time_since_start;
|
|
|
|
|
|
|
|
- DeviceOptions& _device_options;
|
|
|
|
|
|
|
+ const DeviceOptions& _device_options;
|
|
|
Filesystem* _bundle_filesystem;
|
|
Filesystem* _bundle_filesystem;
|
|
|
StringId64 _boot_package_id;
|
|
StringId64 _boot_package_id;
|
|
|
StringId64 _boot_script_id;
|
|
StringId64 _boot_script_id;
|
|
@@ -235,7 +235,7 @@ private:
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
bool next_event(OsEvent& ev);
|
|
bool next_event(OsEvent& ev);
|
|
|
-void init(DeviceOptions& opts);
|
|
|
|
|
|
|
+void init(const DeviceOptions& opts);
|
|
|
void update();
|
|
void update();
|
|
|
void shutdown();
|
|
void shutdown();
|
|
|
Device* device();
|
|
Device* device();
|