Browse Source

Updating code to match bx changes. (#1028)

Andrew Copland 9 years ago
parent
commit
19770a8f20
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/common/entry/entry_sdl.cpp

+ 4 - 4
examples/common/entry/entry_sdl.cpp

@@ -487,13 +487,13 @@ namespace entry
 			setWindowSize(defaultWindow, m_width, m_height, true);
 			setWindowSize(defaultWindow, m_width, m_height, true);
 
 
 			bx::FileReaderI* reader = getFileReader();
 			bx::FileReaderI* reader = getFileReader();
-			if (bx::open(&reader, "gamecontrollerdb.txt") )
+			if (bx::open(reader, "gamecontrollerdb.txt") )
 			{
 			{
 				bx::AllocatorI* allocator = getAllocator();
 				bx::AllocatorI* allocator = getAllocator();
-				uint32_t size = (uint32_t)bx::getSize(&reader);
+				uint32_t size = (uint32_t)bx::getSize(reader);
 				void* data = BX_ALLOC(allocator, size);
 				void* data = BX_ALLOC(allocator, size);
-				bx::read(&reader, data, size);
-				bx::close(&reader);
+				bx::read(reader, data, size);
+				bx::close(reader);
 
 
 				SDL_GameControllerAddMapping( (char*)data);
 				SDL_GameControllerAddMapping( (char*)data);