SharedState: Fix asset path priority (rgssad -> "." -> RTPs)
This commit is contained in:
		
							parent
							
								
									f76ecfdba8
								
							
						
					
					
						commit
						b380a0ebdd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -118,8 +118,6 @@ struct SharedStatePrivate
 | 
				
			||||||
				throw Exception(Exception::MKXPError,
 | 
									throw Exception(Exception::MKXPError,
 | 
				
			||||||
			                    "Unable to switch into gameFolder '%s'",
 | 
								                    "Unable to switch into gameFolder '%s'",
 | 
				
			||||||
			                    config.gameFolder.c_str());
 | 
								                    config.gameFolder.c_str());
 | 
				
			||||||
 | 
					 | 
				
			||||||
			fileSystem.addPath(".");
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// FIXME find out correct archive filename
 | 
							// FIXME find out correct archive filename
 | 
				
			||||||
| 
						 | 
					@ -133,6 +131,8 @@ struct SharedStatePrivate
 | 
				
			||||||
			fclose(tmp);
 | 
								fclose(tmp);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							fileSystem.addPath(".");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		for (size_t i = 0; i < config.rtps.size(); ++i)
 | 
							for (size_t i = 0; i < config.rtps.size(); ++i)
 | 
				
			||||||
			fileSystem.addPath(config.rtps[i].c_str());
 | 
								fileSystem.addPath(config.rtps[i].c_str());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue