Sfoglia il codice sorgente

Merge branch 'master' of github.com:taylor001/crown

Daniele Bartolini 10 anni fa
parent
commit
2cdf893728
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/device.cpp
  2. 1 1
      src/device_options.h

+ 1 - 1
src/device.cpp

@@ -79,7 +79,7 @@ void Device::init()
 	profiler_globals::init();
 	profiler_globals::init();
 
 
 #if CROWN_PLATFORM_ANDROID
 #if CROWN_PLATFORM_ANDROID
-	_bundle_filesystem = CE_NEW(_allocator, ApkFilesystem)(_device_options.asset_manager());
+	_bundle_filesystem = CE_NEW(_allocator, ApkFilesystem)(const_cast<AAssetManager*>(_device_options.asset_manager()));
 #else
 #else
 	_bundle_filesystem = CE_NEW(_allocator, DiskFilesystem)(_device_options.bundle_dir());
 	_bundle_filesystem = CE_NEW(_allocator, DiskFilesystem)(_device_options.bundle_dir());
 #endif // CROWN_PLATFORM_ANDROID
 #endif // CROWN_PLATFORM_ANDROID

+ 1 - 1
src/device_options.h

@@ -35,7 +35,7 @@ struct DeviceOptions
 	uint16_t window_height() const { return _window_height; }
 	uint16_t window_height() const { return _window_height; }
 
 
 #if CROWN_PLATFORM_ANDROID
 #if CROWN_PLATFORM_ANDROID
-	AAssetManager* asset_manager();
+	const AAssetManager* asset_manager() const { return _asset_manager; }
 #endif // CROWN_PLATFORM_ANDROID
 #endif // CROWN_PLATFORM_ANDROID
 
 
 private:
 private: