Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc load*( self: var Game, filePath: string ): void =
- try:
- if self.file != nil:
- self.file.reopen( filePath )
- else:
- self.file = open( filePath )
- copyMem( addr(filePath), self.gamePath, len(filePath) )
- self.running = true
- log( "Game loaded" )
- except IOError:
- log( filePath, "(load): was not found. Cannot move beyond this." )"
Advertisement
Add Comment
Please, Sign In to add comment