• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
 
April 26, 2024, 06:05:58 PM

News:

Kart Racing Pro release13e available! :)


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ccesaretto

1
Plugins / Re: Proxy plugin
August 05, 2017, 03:24:13 PM
Hello.
I have been using Proxy plugin to interface to Kart Racing Pro from my C# application.
Everything works fine but, in the SPluginsKartSession_t structure, I had to add an extra property to make everything work fine (see code at the bottom)

is it possible that this file:

http://www.kartracing-pro.com/downloads/krp_proxy.c

is not completely up to date and the SPluginsKartSession_t structure actually need the property I have added?

Thanks


    internal struct SPluginsKartSession_t
    {
        public int m_iSession;
        public int m_iSessionSeries;
        public int m_iConditions;
        public float temp;//<============================  ADDED
        public float m_fAirTemperature;
        public float m_fTrackTemperature;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 100)]
        public char[] m_szSetupFileName;
    }