Guest User

Untitled

a guest
Feb 15th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import game
  2.  
  3. var g: Game
  4. initGame( g )
  5.  
  6. proc retro_load_game( absfilePath: string ) {.cdecl,exportc,dynlib} =
  7. g.load( absFilePath )
  8.  
  9. proc retro_unload_game: void {.cdecl,exportc,dynlib} =
  10. g.unload()
  11.  
  12. proc retro_run(): void {.cdecl,exportc,dynlib} =
  13. g.run()
  14.  
  15. when isMainModule:
  16.  
  17. retro_load_game( "/home/lee/Desktop/file.tex" )
  18. retro_unload_game()
Advertisement
Add Comment
Please, Sign In to add comment