Guest User

Untitled

a guest
Feb 15th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. proc load*( self: var Game, filePath: string ): void =
  2. try:
  3. if self.file != nil:
  4. self.file.reopen( filePath )
  5. else:
  6. self.file = open( filePath )
  7. copyMem( addr(filePath), self.gamePath, len(filePath) )
  8. self.running = true
  9. log( "Game loaded" )
  10.  
  11. except IOError:
  12. log( filePath, "(load): was not found. Cannot move beyond this." )"
Advertisement
Add Comment
Please, Sign In to add comment