Add std::streambuf wrapper around SDL_RWops for boost
Also add SDL_RWops version of the readFile utility function.
This commit is contained in:
		
							parent
							
								
									5974d05380
								
							
						
					
					
						commit
						35077793a0
					
				
					 3 changed files with 119 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,7 @@
 | 
			
		|||
#include "eventthread.h"
 | 
			
		||||
#include "filesystem.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "sdl-util.h"
 | 
			
		||||
#include "debugwriter.h"
 | 
			
		||||
#include "graphics.h"
 | 
			
		||||
#include "audio.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -339,7 +340,7 @@ static void runCustomScript(const std::string &filename)
 | 
			
		|||
{
 | 
			
		||||
	std::string scriptData;
 | 
			
		||||
 | 
			
		||||
	if (!readFile(filename.c_str(), scriptData))
 | 
			
		||||
	if (!readFileSDL(filename.c_str(), scriptData))
 | 
			
		||||
	{
 | 
			
		||||
		showMsg(std::string("Unable to open '") + filename + "'");
 | 
			
		||||
		return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue