2021-01-03 03:07:06 -05:00
|
|
|
//
|
|
|
|
// steamshim_mac_helpers.mm
|
|
|
|
// shim
|
|
|
|
//
|
|
|
|
// Created by ゾロアーク on 1/3/21.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "steamshim_mac_helpers.h"
|
|
|
|
|
|
|
|
std::string execPath() {
|
2021-01-03 04:27:14 -05:00
|
|
|
NSString *p = [NSBundle.mainBundle.executablePath stringByDeletingLastPathComponent];
|
|
|
|
std::string ret([NSString pathWithComponents:@[p, @(GAME_LAUNCH_NAME)]].UTF8String);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string appParentPath() {
|
|
|
|
std::string ret([NSBundle.mainBundle.bundlePath stringByDeletingLastPathComponent].UTF8String);
|
|
|
|
return ret;
|
2021-01-03 03:07:06 -05:00
|
|
|
}
|