Skip to content

warxander/nesm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nesm: FiveM NES Emulator

(Based on awesome jsnes by bfirsh)

Quick Start

  • Download and put into resources/ directory
  • Add ensure nesm to server.cfg

Usage

local nesm = exports.nes

nesm:init()
while not nesm:isReady() do
	Wait(0)
end

local nesTxd = nesm:getTextureDict()
local nesTxn = nesm:getTextureName()

local romBytes = --[[ .nes content ]]--
nesm:run(romBytes)

while nesm:isRunning() do
	DrawSprite(nesTxd, nesTxn, 0.5, 0.5, 0.3125, 0.5212, 0, 255, 255, 255, 255)
	Wait(0)
end

Exports

init()

--! @return : boolean
isReady()

--! @return : string
getTextureDict()

--! @return : string
getTextureName()

--! @param romBytes: number[]
run(romBytes)

--! @return : boolean
isRunning()

stop()

About

FiveM NES Emulator

Resources

Stars

Watchers

Forks

Packages

No packages published