mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Change the return type of handleKeyFile to void, and unswap the arguments. zenorogue/hyperrogue#25
This commit is contained in:
		| @@ -898,7 +898,7 @@ namespace dialog { | ||||
|    | ||||
|   bool_reaction_t file_action; | ||||
|    | ||||
|   bool handleKeyFile(int sym, int uni); | ||||
|   void handleKeyFile(int sym, int uni); | ||||
|  | ||||
|   void drawFileDialog() { | ||||
|     displayfr(vid.xres/2, 30 + vid.fsize, 2, vid.fsize,  | ||||
| @@ -954,7 +954,7 @@ namespace dialog { | ||||
|     keyhandler = handleKeyFile; | ||||
|     } | ||||
|    | ||||
|   bool handleKeyFile(int sym, int uni) { | ||||
|   void handleKeyFile(int uni, int sym) { | ||||
|     string& s(*cfileptr); | ||||
|     int i = size(s) - (editext?0:4); | ||||
|      | ||||
| @@ -994,7 +994,7 @@ namespace dialog { | ||||
|       else | ||||
|         s = where + v[i].first; | ||||
|       } | ||||
|     return true; | ||||
|     return; | ||||
|     } | ||||
|  | ||||
|   void openFileDialog(string& filename, string fcap, string ext, bool_reaction_t action) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue