//First make an instance of class TMAPI:
TMAPI tmapi;
//Check if library is loaded
if(!tmapi.getLibraryState()) { //put error message here }
else { //put success message here }
//Connect:
if(!tmapi.connect()) { //put error message here }
else { //put success message here }
//Attach
if(!tmapi.attach()) { //put error message here }
else { //put success message here }
//Write to memory (1 byte)
tmapi.writeByte(0x133337, 0xFF); //Address, Byte
//Write to memory (multiple bytes)
BYTE bytes = { 0x01, 0xFF };
tmapi.setMemory(address_goes_here, bytes, sizeof(bytes));
//Address, array, size of array
//Write other data (e.g. int, float)
tmapi.writeData<int>(address_goes_here, int_goes_here);
tmapi.writeData<float>(address_goes_here, float_goes_here);
//First make an instance of class TMAPI:
TMAPI tmapi;
//Check is library is loaded
if(!tmapi.GetLibraryState()) { //put error message here }
else { //put success message here }
//Connect:
if(!tmapi.Connect()) { //put error message here }
else { //put success message here }
//Attach
if(!tmapi.Attach()) { //put error message here }
else { //put success message here }
//Write to memory (1 byte)
tmapi.WriteByte(0x133337, 0xFF); //Address, Byte
//Write to memory (multiple bytes)
BYTE bytes = { 0x01, 0xFF };
tmapi.SetMemory(0x33337, &bytes, sizeof(bytes));
Copyright © 2024, NextGenUpdate.
All Rights Reserved.