-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big Update - fix download/upload/delete, allow multiple file selection
- Loading branch information
Showing
101 changed files
with
36,682 additions
and
2,501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
#ifndef FUNCTIONS_H | ||
#define FUNCTIONS_H | ||
static int FindPosition(wchar_t* buffer, int startpos = 0, int maxchars = MAX_PATH); | ||
|
||
static int FindPosition(wchar_t* buffer, int startpos, int maxchars) | ||
{ | ||
int newpos=-1,start=0; | ||
if (startpos == 0) start = 0; | ||
else start = startpos + 1; | ||
for (int i = start; i < maxchars; i++) | ||
{ | ||
if (buffer[i] == '\0') | ||
{ | ||
newpos = i; | ||
break; | ||
} | ||
if (i == maxchars - 1) | ||
{ | ||
newpos = -1; | ||
break; | ||
} | ||
} | ||
return newpos; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 67 additions & 67 deletions
134
steamcloud/steam/isteamapplist.h → steamcloud/steam.old/isteamapplist.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
//====== Copyright © 1996-2008, Valve Corporation, All rights reserved. ======= | ||
// | ||
// Purpose: interface to app data in Steam | ||
// | ||
//============================================================================= | ||
|
||
#ifndef ISTEAMAPPLIST_H | ||
#define ISTEAMAPPLIST_H | ||
#ifdef _WIN32 | ||
#pragma once | ||
#endif | ||
|
||
#include "steam_api_common.h" | ||
#include "steamtypes.h" | ||
|
||
//----------------------------------------------------------------------------- | ||
// Purpose: This is a restricted interface that can only be used by previously approved apps, | ||
// contact your Steam Account Manager if you believe you need access to this API. | ||
// This interface lets you detect installed apps for the local Steam client, useful for debugging tools | ||
// to offer lists of apps to debug via Steam. | ||
//----------------------------------------------------------------------------- | ||
class ISteamAppList | ||
{ | ||
public: | ||
virtual uint32 GetNumInstalledApps() = 0; | ||
virtual uint32 GetInstalledApps( AppId_t *pvecAppID, uint32 unMaxAppIDs ) = 0; | ||
|
||
virtual int GetAppName( AppId_t nAppID, STEAM_OUT_STRING() char *pchName, int cchNameMax ) = 0; // returns -1 if no name was found | ||
virtual int GetAppInstallDir( AppId_t nAppID, char *pchDirectory, int cchNameMax ) = 0; // returns -1 if no dir was found | ||
|
||
virtual int GetAppBuildId( AppId_t nAppID ) = 0; // return the buildid of this app, may change at any time based on backend updates to the game | ||
}; | ||
|
||
#define STEAMAPPLIST_INTERFACE_VERSION "STEAMAPPLIST_INTERFACE_VERSION001" | ||
|
||
// Global interface accessor | ||
inline ISteamAppList *SteamAppList(); | ||
STEAM_DEFINE_USER_INTERFACE_ACCESSOR( ISteamAppList *, SteamAppList, STEAMAPPLIST_INTERFACE_VERSION ); | ||
|
||
// callbacks | ||
#if defined( VALVE_CALLBACK_PACK_SMALL ) | ||
#pragma pack( push, 4 ) | ||
#elif defined( VALVE_CALLBACK_PACK_LARGE ) | ||
#pragma pack( push, 8 ) | ||
#else | ||
#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx | ||
#endif | ||
|
||
|
||
//--------------------------------------------------------------------------------- | ||
// Purpose: Sent when a new app is installed | ||
//--------------------------------------------------------------------------------- | ||
STEAM_CALLBACK_BEGIN( SteamAppInstalled_t, k_iSteamAppListCallbacks + 1 ) | ||
STEAM_CALLBACK_MEMBER( 0, AppId_t, m_nAppID ) // ID of the app that installs | ||
STEAM_CALLBACK_END(1) | ||
|
||
|
||
//--------------------------------------------------------------------------------- | ||
// Purpose: Sent when an app is uninstalled | ||
//--------------------------------------------------------------------------------- | ||
STEAM_CALLBACK_BEGIN( SteamAppUninstalled_t, k_iSteamAppListCallbacks + 2 ) | ||
STEAM_CALLBACK_MEMBER( 0, AppId_t, m_nAppID ) // ID of the app that installs | ||
STEAM_CALLBACK_END(1) | ||
|
||
|
||
#pragma pack( pop ) | ||
#endif // ISTEAMAPPLIST_H | ||
//====== Copyright © 1996-2008, Valve Corporation, All rights reserved. ======= | ||
// | ||
// Purpose: interface to app data in Steam | ||
// | ||
//============================================================================= | ||
|
||
#ifndef ISTEAMAPPLIST_H | ||
#define ISTEAMAPPLIST_H | ||
#ifdef _WIN32 | ||
#pragma once | ||
#endif | ||
|
||
#include "steam_api_common.h" | ||
#include "steamtypes.h" | ||
|
||
//----------------------------------------------------------------------------- | ||
// Purpose: This is a restricted interface that can only be used by previously approved apps, | ||
// contact your Steam Account Manager if you believe you need access to this API. | ||
// This interface lets you detect installed apps for the local Steam client, useful for debugging tools | ||
// to offer lists of apps to debug via Steam. | ||
//----------------------------------------------------------------------------- | ||
class ISteamAppList | ||
{ | ||
public: | ||
virtual uint32 GetNumInstalledApps() = 0; | ||
virtual uint32 GetInstalledApps( AppId_t *pvecAppID, uint32 unMaxAppIDs ) = 0; | ||
|
||
virtual int GetAppName( AppId_t nAppID, STEAM_OUT_STRING() char *pchName, int cchNameMax ) = 0; // returns -1 if no name was found | ||
virtual int GetAppInstallDir( AppId_t nAppID, char *pchDirectory, int cchNameMax ) = 0; // returns -1 if no dir was found | ||
|
||
virtual int GetAppBuildId( AppId_t nAppID ) = 0; // return the buildid of this app, may change at any time based on backend updates to the game | ||
}; | ||
|
||
#define STEAMAPPLIST_INTERFACE_VERSION "STEAMAPPLIST_INTERFACE_VERSION001" | ||
|
||
// Global interface accessor | ||
inline ISteamAppList *SteamAppList(); | ||
STEAM_DEFINE_USER_INTERFACE_ACCESSOR( ISteamAppList *, SteamAppList, STEAMAPPLIST_INTERFACE_VERSION ); | ||
|
||
// callbacks | ||
#if defined( VALVE_CALLBACK_PACK_SMALL ) | ||
#pragma pack( push, 4 ) | ||
#elif defined( VALVE_CALLBACK_PACK_LARGE ) | ||
#pragma pack( push, 8 ) | ||
#else | ||
#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx | ||
#endif | ||
|
||
|
||
//--------------------------------------------------------------------------------- | ||
// Purpose: Sent when a new app is installed | ||
//--------------------------------------------------------------------------------- | ||
STEAM_CALLBACK_BEGIN( SteamAppInstalled_t, k_iSteamAppListCallbacks + 1 ) | ||
STEAM_CALLBACK_MEMBER( 0, AppId_t, m_nAppID ) // ID of the app that installs | ||
STEAM_CALLBACK_END(1) | ||
|
||
|
||
//--------------------------------------------------------------------------------- | ||
// Purpose: Sent when an app is uninstalled | ||
//--------------------------------------------------------------------------------- | ||
STEAM_CALLBACK_BEGIN( SteamAppUninstalled_t, k_iSteamAppListCallbacks + 2 ) | ||
STEAM_CALLBACK_MEMBER( 0, AppId_t, m_nAppID ) // ID of the app that installs | ||
STEAM_CALLBACK_END(1) | ||
|
||
|
||
#pragma pack( pop ) | ||
#endif // ISTEAMAPPLIST_H |
Oops, something went wrong.