Simple settings class
Page 1 of 3 123 Last
  1. #1

    Simple settings class

    Simple stuff, load and save configs.

    Credits: GD

    [hide]

    Code:
    BOOL WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName)
    {
        TCHAR lpString[ 1024 ];
        wsprintf( lpString, "%d", nInteger );
        return WritePrivateProfileString( lpAppName, lpKeyName, lpString, lpFileName );
    }
    
    void cSettings::SaveConfigs()
    {
        //WritePrivateProfileInt (     "Cvars", "Testing", base.m_psCvar->test, szIniFile);
    }
    
    void cSettings::LoadConfigs()
    {
        //base.m_psCvar->test = GetPrivateProfileInt (     "Cvars", "Testing", 0, szIniFile);
    }
    
    char szIniFile[256];
    void cSettings::GetIniFile( HMODULE hModule )
    {
        GetModuleFileName( hModule, szIniFile, sizeof( szIniFile ) );
        for( int i = 0; i < ( int )strlen( szIniFile ); i++ )
        {
            if( szIniFile[ strlen( szIniFile ) - i ] == '\' )
            {
                szIniFile[ ( strlen( szIniFile ) -  i ) + 1 ] = '';
                strcat( szIniFile,"start.cfg");
                return;
            }
        }
    }
    [/hide]
    Last edited by Josh; 22nd October 2007 at 16:00.
    How To Contact Me@[b/]

    Private Message me for any important issues or just say Hi :) I'm not a robot.

    ---- (No Support!) ----
    Wanna Hang out ? Add me or Join my communities below:

    Add be on Discord : dr0ps25#7946 ;-)
    or Join Our Community Server :
    dr0ps Project-7 Telegram Community Chat: https://t.me/+pAb_mrtrjXg1ZDlk

    ---- (24/7 Customer Support) ----

    Private Message
    Email: " support 'at' Project-7. 'net' "

    Create Support Ticket on Discord!
    Discord Server:



    Would you like to work in the cheating industry ? Project-7 is hiring a varient of new employees. We're currently in requisite of quite a few talents to add into the relaunched company now that we have a more professional and precise structure in place to provide real paid work for anyone willing to help our team grow:[/b]

    We're currently looking for multiple types of forum moderators and content creators/posters, we're offering quite a few paid positions for you to just talk about cheats on the community!






  2. #2
    Why you write BOOL and not bool?:D

  3. #3
    lets see.

  4. #4
    fasfa

  5. #5

  6. #6
    letsee

  7. #7
    yep,yep,yep,mhm, want a beer?

  8. #8
    roooooooooooooooooofl unhide

  9. #9
    unhide

  10. #10

    Lol

    lol gj

Page 1 of 3 123 Last

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in