mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00
19 lines
485 B
Text
19 lines
485 B
Text
//
|
|
// steamshim_mac_helpers.mm
|
|
// shim
|
|
//
|
|
// Created by ゾロアーク on 1/3/21.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "steamshim_mac_helpers.h"
|
|
|
|
std::string execPath() {
|
|
NSString *p = [NSBundle.mainBundle.executablePath stringByDeletingLastPathComponent];
|
|
std::string ret([NSString pathWithComponents:@[p, @(GAME_LAUNCH_NAME)]].UTF8String);
|
|
return ret;
|
|
}
|
|
|
|
std::string appResourcePath() {
|
|
return std::string(NSBundle.mainBundle.resourcePath.UTF8String);
|
|
}
|